From 1de8ad540fd19c8b5f10be3761ed24a8ab446fa7 Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 13 Jul 2022 14:10:56 -0400 Subject: [PATCH] Fix #3054: RadioButton prevent click propagation (#3058) --- components/lib/radiobutton/RadioButton.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/radiobutton/RadioButton.js b/components/lib/radiobutton/RadioButton.js index 9e821d9976..37ecb5304d 100644 --- a/components/lib/radiobutton/RadioButton.js +++ b/components/lib/radiobutton/RadioButton.js @@ -30,6 +30,7 @@ export const RadioButton = React.memo(React.forwardRef((props, ref) => { inputRef.current.checked = !props.checked; DomHandler.focus(inputRef.current); + e.preventDefault(); } }