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

[Fixes #1128] Protect against null querySelector in PaperMenu#focusItem #1129

Merged
merged 2 commits into from
May 9, 2020

Conversation

boydkr
Copy link
Contributor

@boydkr boydkr commented Feb 18, 2020

Fixes #1128
Check for existence of query selector before getting first child

@miguelcobain
Copy link
Owner

You make a good point. A menu without focusable options is still a valid menu!

Thank you for the PR with the test. 💯

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.

PaperMenu focusItem breaks if all menu items are disabled
2 participants