-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Picker Checkbox doesn't work in Firefox when checkbox is clicked on directly #3905
Comments
The issue with the Visual Picker Checkbox not working in Firefox when clicked directly seems to stem from how Firefox handles click events on hidden input elements differently than other browsers. This discrepancy affects the In the Paste design system, clicking on the surrounding box of the checkbox triggers a programmatic click on the checkbox itself, which should toggle its state. However, when clicking directly on the checkbox, Firefox's handling of the event on the hidden input element prevents the expected change in state. This is because the event propagation is stopped by the To address this issue, the event handling logic within the The relevant code can be found in the VisualPickerCheckbox.tsx file in the Paste repository. Adjusting this logic should help achieve consistent behavior across browsers, including Firefox.
|
Hey @dangmai - thanks for reporting this! I've added a ticket to our backlog to address the bug. We'll let you know here once it's fixed. |
Description
In Firefox, when I click directly on a checkbox inside a Visual Picker, the selection doesn't change. The selection does change if I click on the box surrounding the checkbox.
Link to Reproduction
n/a since this is reproducible directly on Paste website
Steps to reproduce
Paste Core Version
20.2.0
Browser
Firefox 125.0.3
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: