Dialog - Closing by clicking Overlay area suppresses onblur events #1689
-
Is it intended behaviour that closing a dialog by clicking Overlay area suppresses onblur events?I have created a sandbox to illustrate my question: |
Beta Was this translation helpful? Give feedback.
Answered by
benoitgrelard
Sep 27, 2022
Replies: 1 comment 3 replies
-
Hey @bjeld, Not sure I would say intended behaviour, but rather a consequence of the dismissal on You can see the same behaviour in this very basic reproduction without Radix: https://codesandbox.io/s/unmount-on-pointerdown-skips-blur-yspfp7?file=/src/App.js |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
bjeld
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @bjeld,
Not sure I would say intended behaviour, but rather a consequence of the dismissal on
pointerdown
.Because
pointerdown
will happen beforeblur
.You can see the same behaviour in this very basic reproduction without Radix:
https://codesandbox.io/s/unmount-on-pointerdown-skips-blur-yspfp7?file=/src/App.js