Skip to content

Commit afba2ae

Browse files
authored
Fix Visual Picker Checkbox doesn't work in Firefox when checkbox is clicked on directly (#4102)
* fix(visual-picker): fix checkbox click * fix(visual-picker): add changeset * Update modern-starfishes-matter.md
1 parent 239b2c5 commit afba2ae

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@twilio-paste/visual-picker": patch
3+
"@twilio-paste/core": patch
4+
---
5+
6+
[Visual Picker]: Fix Visual Picker checkbox doesn't work in firefox when checkbox is clicked on directly

packages/paste-core/components/visual-picker/src/VisualPickerCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const VisualPickerCheckbox = React.forwardRef<HTMLInputElement, VisualPic
115115
<BaseRadioCheckboxLabel disabled={disabled} htmlFor={checkboxId} id={labelId}>
116116
<ScreenReaderOnly>{labelText}</ScreenReaderOnly>
117117
<BaseRadioCheckboxControl
118-
onClick={(e) => e.stopPropagation()}
118+
onClick={(e) => e.preventDefault()}
119119
borderRadius="borderRadius20"
120120
element={`${element}_CONTROL`}
121121
disabled={disabled}

0 commit comments

Comments
 (0)