When multiple checkboxes are present on a single page, there is an issue where rapidly clicking a checkbox can cause it to revert to its previous state. This behavior appears to be triggered when a "double-click" (dblclick) browser event is registered. It is really hard to reproduce it on a destop, but on mobile i can reproduce it every time.
The problem has been observed specifically in the Safari browser on iOS devices.
For further reference, please see the related GitHub issue: React Issue #19841.
A demonstration of this behavior can be found in the following video: Video Example
Describe the bug
When multiple checkboxes are present on a single page, there is an issue where rapidly clicking a checkbox can cause it to revert to its previous state. This behavior appears to be triggered when a "double-click" (dblclick) browser event is registered. It is really hard to reproduce it on a destop, but on mobile i can reproduce it every time.
The problem has been observed specifically in the Safari browser on iOS devices.
For further reference, please see the related GitHub issue: React Issue #19841.
A demonstration of this behavior can be found in the following video: Video Example
Someho ChakraUI managed to make this issue a thing in a past. https://v2.chakra-ui.com/docs/components/checkbox/usage
Affected component/components
Checkbox
How to reproduce
Codesandbox/StackBlitz link
https://ui.shadcn.com/docs/components/checkbox
Logs
No response
System Info
Before submitting