Skip to content

Commit

Permalink
Fix Visual Picker Checkbox doesn't work in Firefox when checkbox is c…
Browse files Browse the repository at this point in the history
…licked on directly (#4102)

* fix(visual-picker): fix checkbox click

* fix(visual-picker): add changeset

* Update modern-starfishes-matter.md
  • Loading branch information
PixeledCode authored Oct 14, 2024
1 parent 239b2c5 commit afba2ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/modern-starfishes-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@twilio-paste/visual-picker": patch
"@twilio-paste/core": patch
---

[Visual Picker]: Fix Visual Picker checkbox doesn't work in firefox when checkbox is clicked on directly
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const VisualPickerCheckbox = React.forwardRef<HTMLInputElement, VisualPic
<BaseRadioCheckboxLabel disabled={disabled} htmlFor={checkboxId} id={labelId}>
<ScreenReaderOnly>{labelText}</ScreenReaderOnly>
<BaseRadioCheckboxControl
onClick={(e) => e.stopPropagation()}
onClick={(e) => e.preventDefault()}
borderRadius="borderRadius20"
element={`${element}_CONTROL`}
disabled={disabled}
Expand Down

0 comments on commit afba2ae

Please sign in to comment.