From 5b0413ef36832c3824474e97d3a7bc8f05c34a8b Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 13 Jul 2022 08:41:27 -0400 Subject: [PATCH] Fix #3054: Checkbox prevent click propagation (#3055) --- components/lib/checkbox/Checkbox.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/checkbox/Checkbox.js b/components/lib/checkbox/Checkbox.js index 5663682b53..4c3c570f84 100644 --- a/components/lib/checkbox/Checkbox.js +++ b/components/lib/checkbox/Checkbox.js @@ -30,6 +30,7 @@ export const Checkbox = React.memo(React.forwardRef((props, ref) => { inputRef.current.checked = !checked; DomHandler.focus(inputRef.current); + event.preventDefault(); } }