Help debug popover/dialog #7835
Unanswered
Faithfinder
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Can you use a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a weird interaction between
DialogTrigger
/Popover
/Dialog
andreact-select
library (used for multiselect component). The components themselves are fairly complex, so I don't have a minimal repro. Also, I don't think it is either library's fault, I'm probably making a silly mistake somewhere. Still, I'm out of ideas and would like some help debugging =PThe interaction is that when a specific value is selected in
react-select
, clicking on it opens select's menu for a split second, and then both react-select menu and the popover close. I'd make a gif, but apparently the popover is also not captured via ffmpeg? Sorry.I've checked the following:
shows that the component is mounted throughout the process.
2) It's not registering as a click outside the popover -
shouldCloseOnInteractOutside
event of the popover is never called.3) It's not manually calling any of the render props
close
.4) The component is controlled.
onOpenChange
is properly called when the component closes.5) It's not a keyboard interaction, of course.
The question I have for this community is, how can a controlled Popover close of it's own will? What other triggers could there be besides an outside click, change the controlled state, or calling the
close
render prop?Beta Was this translation helpful? Give feedback.
All reactions