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
fix(frontend): commit Select choice on pointerdown to avoid portal race
When the dropdown is rendered through createPortal under document.body,
the document-level outside-click listener and the option's React onClick
can race in certain DOM/Radix contexts: the outside-click handler fires
on mousedown bubble, which can unmount the portal before the option's
click ever reaches React, leaving the user unable to pick a value.
Switch the listener to pointerdown (rejecting only targets outside both
the trigger and the portaled dropdown) and commit selection from the
option's onPointerDown handler with preventDefault. The onClick handler
stays as a keyboard-triggered fallback for Enter/Space.
0 commit comments