Skip to content
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

Guard check onEscape - Popover #1529

Closed
pomfrida opened this issue Aug 25, 2021 · 0 comments · Fixed by #1534
Closed

Guard check onEscape - Popover #1529

pomfrida opened this issue Aug 25, 2021 · 0 comments · Fixed by #1534
Assignees
Labels
🐛 bug Something isn't working core-react eds-core-react

Comments

@pomfrida
Copy link
Contributor

From Slack:

After the popover was upgraded, I was not aware of the escape behaviour, until an e2e test failed for no sane reason. Pressing escape in our app now opens a ton of popovers, because onClose was implemented as a toggle. Since this behaviour is global, could it be guarded by an if open check? I guess the intention is to close all popover on escape press.

@pomfrida pomfrida added core-react eds-core-react 🐛 bug Something isn't working labels Aug 25, 2021
@pomfrida pomfrida self-assigned this Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working core-react eds-core-react
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant