Skip to content

Commit

Permalink
Merge pull request #6232 from melloware/PR6231
Browse files Browse the repository at this point in the history
Fix #6231: Checkbox typescript and onClick event
  • Loading branch information
nitrogenous authored Mar 29, 2024
2 parents df850a4 + 619cd12 commit ca02260
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion components/lib/checkbox/CheckboxBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const CheckboxBase = ComponentBase.extend({
invalid: false,
name: null,
onChange: null,
onClick: null,
onContextMenu: null,
onMouseDown: null,
readOnly: false,
Expand Down
2 changes: 1 addition & 1 deletion components/lib/checkbox/checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ interface CheckboxChangeEvent extends FormEvent {}
* Defines valid properties in Checkbox component. In addition to these, all properties of HTMLDivElement can be used in this component.
* @group Properties
*/
export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLDivElement>, 'onChange' | 'ref'> {
/**
* Unique identifier of the element.
*/
Expand Down

0 comments on commit ca02260

Please sign in to comment.