Skip to content

Commit

Permalink
Fix #6231: Checkbox typescript and onClick event
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Mar 26, 2024
1 parent 54df499 commit a86035d
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 a86035d

Please sign in to comment.