-
Notifications
You must be signed in to change notification settings - Fork 211
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
fix(menu): allow menu-item to support arbitrary element as the submenu root #4720
Conversation
90b7d35
to
2de878d
Compare
Lighthouse scores
What is this?Lighthouse scores comparing the documentation site built from the PR ("Branch") to that of the production documentation site ("Latest") and the build currently on Transfer Size
Request Count
|
Pull Request Test Coverage Report for Build 10733312755Details
💛 - Coveralls |
2de878d
to
225819a
Compare
225819a
to
1751f14
Compare
Great Start! Can you also create a storybook link for this usage? |
Tachometer resultsChromeaction-menu permalinktest-basic
test-directive permalink
test-lazy permalink
test-open-close-directive permalink
test-open-close permalink
breadcrumbs permalinkbasic-test
combobox permalinkbasic-test
light-dom-test permalink
menu permalinktest-basic
picker permalinkbasic-test
split-button permalinkbasic-test
Firefoxaction-menu permalinktest-basic
test-directive permalink
test-lazy permalink
test-open-close-directive permalink
test-open-close permalink
breadcrumbs permalinkbasic-test
combobox permalinkbasic-test
light-dom-test permalink
menu permalinktest-basic
picker permalinkbasic-test
split-button permalinkbasic-test
|
5440c77
to
8314907
Compare
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.
Left small comments, but overall I think this PR is great to make our component handle these cases more gracefully 👍
Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
…u root (#4720) * fix(menu): allow using non-menu-item element as submenu root * chore(menu): fixed broken test * chore(menu): added a custom root submenu example in storybook * chore(menu): updated docs --------- Co-authored-by: Rúben Carvalho <[email protected]>
Description
Allow using non-menu-item components as submenu.
Related issue(s)
Motivation and context
Using arbitrary components as submenu items and clicking them produces the TypeError:
Cannot read properties of undefined (reading 'selectionRoot') in Menu.handlePointerBasedSelection
How has this been tested?
Added a test and it passed.
Did it pass in Desktop?
Did it pass in Mobile?
Did it pass in iPad?
Screenshots (if appropriate)
Types of changes
Checklist
Best practices
This repository uses conventional commit syntax for each commit message; note that the GitHub UI does not use this by default so be cautious when accepting suggested changes. Avoid the "Update branch" button on the pull request and opt instead for rebasing your branch against
main
.