From d2948bd5bec25363399a82532f9c6cca5b2c7ada Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 13 Jul 2022 08:33:53 -0400 Subject: [PATCH] Fix #3054: Checkbox prevent click propagation --- 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(); } }