You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Select menu is open, and the user clicks outside of the Select menu content to close it, this event fires onPointerDown. This means that as soon as the mouse button is depressed, the Select menu closes.
Expected behavior
When the Select menu is open, and the user clicks outside of the Select menu content to close it, this event should fire onPointerUp. This means that the Select menu will not close until the user releases their mouse button outside of the Select content. This allows users to cancel the mouse click operation, and meets WCAG 2.5.2 Pointer Cancellation.
Bug report
Current Behavior
When the Select menu is open, and the user clicks outside of the Select menu content to close it, this event fires onPointerDown. This means that as soon as the mouse button is depressed, the Select menu closes.
Expected behavior
When the Select menu is open, and the user clicks outside of the Select menu content to close it, this event should fire onPointerUp. This means that the Select menu will not close until the user releases their mouse button outside of the Select content. This allows users to cancel the mouse click operation, and meets WCAG 2.5.2 Pointer Cancellation.
Reproducible example
CodeSandbox Example
Suggested solution
Swap from using onPointerDown event to onPointerUp event
Additional context
WCAG 2.5.2 Pointer Cancellation
Your environment
The text was updated successfully, but these errors were encountered: