Skip to content

Conversation

@snowystinger
Copy link
Member

@snowystinger snowystinger commented May 28, 2021

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:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

@snowystinger snowystinger changed the title WIP Fix Popover not closing from pressing trigger Fix Popover not closing from pressing trigger May 28, 2021
@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@devongovett
Copy link
Member

Nested modals/popovers/menu inside popover stories are broken.

move stoppropagation and preventdefault to useoverlay
@adobe-bot
Copy link

Build successful! 🎉

fix overlaytrigger state so it uses previous state
},
toggle() {
setOpen(!isOpen);
setOpen(wasOpen => !wasOpen);
Copy link
Member Author

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

devongovett
devongovett previously approved these changes Jun 7, 2021
@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

@adobe-bot
Copy link

Build successful! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Overlay not closed when clicking another MenuTrigger

4 participants