Skip to content

Commit

Permalink
Fix primefaces#6231: Checkbox onClick TS def
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Apr 26, 2024
1 parent 77ba792 commit 866d832
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 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<HTMLInputElement>, HTMLDivElement>, 'onChange' | 'ref'> {
export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLDivElement>, 'onChange' | 'onClick' | 'ref'> {
/**
* Unique identifier of the element.
*/
Expand Down Expand Up @@ -178,6 +178,11 @@ export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputH
* @type {TooltipOptions}
*/
tooltipOptions?: TooltipOptions | undefined;
/**
* Callback to invoke on click.
* @param {React.MouseEvent<HTMLInputElement> & { target: HTMLInputElement }} event - click event
*/
onClick?(event: React.MouseEvent<HTMLInputElement> & { target: HTMLInputElement }): void;
/**
* Callback to invoke on value change
* @param {CheckboxChangeEvent} event - Custom change event
Expand Down

0 comments on commit 866d832

Please sign in to comment.