-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix Popover not closing from pressing trigger #1970
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
Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Nested modals/popovers/menu inside popover stories are broken. |
move stoppropagation and preventdefault to useoverlay
|
Build successful! 🎉 |
fix overlaytrigger state so it uses previous state
| }, | ||
| toggle() { | ||
| setOpen(!isOpen); | ||
| setOpen(wasOpen => !wasOpen); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This happened too fast in the test and it was using the old isOpen value, so this makes that impossible, it'll always use the previous value of isOpen
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
Closes #1155
Original bug was to fix, open popover and click trigger to close it again
May also fix double open menu
Shouldn't break FF text selection bug
nested modals should still work
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: