-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v5] popover closing issue #594
Comments
this also occurs for a popover within a modal that has a clickable item inside it. |
Not 100% sure how the first popover is staying open since it appears that the popover currently doesn't not (double negative) trigger the toggle callback when the popover itself is clicked. |
i guess that could be the entire issue, should the popover toggle itself when it is clicked? |
bootstrap's doesn't close, so I assume it should not trigger the callback. I already made the fix but got sidetracked. I'll push it up when I get some time later. |
Awesome, thanks so much |
So.. the issue which caused the popover to close when clicking inside of the popover has been fixed in released in 5.0.0-alpha.2 (use |
Actually, don't know why I didn't think about this earlier, but you don't have to set the toggle prop. Don't pass it for the inner popover and "manually" close it when a date is selected. If the outer one closes, it will close the inner one (unmount), the only edge case is clicking outside of the inner one but inside of the outer one... Eh just a thought |
Thanks for the deep thought on this but yeah we already make the first popover not toggle when clicked outside of it as it contains a form so the fix you've already made will totally resolve the issue for us. thanks again! |
Issue description
popover within popover closes on click of inner most (active) popover
#5.0.0-alpha.1
popover
Steps to reproduce issue
have a popover with a button that opens another popover on click then the secondary popover has a button that interacts with state i.e. a date picker
a Gif of the issue as well https://cl.ly/mlI1/Screen%20Recording%202017-09-27%20at%2010.08%20AM.gif
The text was updated successfully, but these errors were encountered: