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
A Popover who's trigger renders differently based on open state
and uses a Portal
and is rendered in a Dialog
Does not open when the trigger is clicked. In my minimal reproduction case it only doesn't open on the first click, but in our production application it doesn't open at all. This happens because onOpenChange is being called twice in quick succession.
Bug report
Current Behavior
Slightly complicated, but..
Does not open when the trigger is clicked. In my minimal reproduction case it only doesn't open on the first click, but in our production application it doesn't open at all. This happens because onOpenChange is being called twice in quick succession.
Expected behavior
The popover should open
Reproducible example
https://codesandbox.io/s/sad-darwin-rvpy1o?file=/src/App.tsx
Suggested solution
Not sure, but it looks possibly introduced by 568fdc5. 🤷See @robbtraister's commentAdditional context
We recently saw this behaviour when bumping radix-ui versions, specifically popover from
^1.0.5
to^1.0.6
.Your environment
The text was updated successfully, but these errors were encountered: