Skip to content

Dialog - Closing by clicking Overlay area suppresses onblur events #1689

Answered by benoitgrelard
bjeld asked this question in Help
Discussion options

You must be logged in to vote

Hey @bjeld,

Not sure I would say intended behaviour, but rather a consequence of the dismissal on pointerdown.
Because pointerdown will happen before blur.

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@bjeld
Comment options

@benoitgrelard
Comment options

@bjeld
Comment options

Answer selected by bjeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1687 on September 27, 2022 13:46.