Skip to content

Commit

Permalink
Fix primefaces#7440: Checkbox pass event for onBlur/onFocus (primefac…
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 30, 2024
1 parent 6ff0153 commit 0a54c58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/lib/checkbox/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ export const Checkbox = React.memo(
}
};

const onFocus = () => {
const onFocus = (event) => {
setFocusedState(true);
props?.onFocus?.();
props?.onFocus?.(event);
};

const onBlur = () => {
const onBlur = (event) => {
setFocusedState(false);
props?.onBlur?.();
props?.onBlur?.(event);
};

React.useImperativeHandle(ref, () => ({
Expand Down

0 comments on commit 0a54c58

Please sign in to comment.