From 0a54c583e7344b896b0e6ffde3e70c7128302ef3 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 30 Dec 2024 10:57:17 -0500 Subject: [PATCH] Fix #7440: Checkbox pass event for onBlur/onFocus (#7534) --- components/lib/checkbox/Checkbox.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lib/checkbox/Checkbox.js b/components/lib/checkbox/Checkbox.js index 6889e80dc0..94284a5e5f 100644 --- a/components/lib/checkbox/Checkbox.js +++ b/components/lib/checkbox/Checkbox.js @@ -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, () => ({