UI Shell header menu onBlur not working
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Detailed description
Describe in detail the issue you’re having. Using the UI Shell header with multiple sub menus, the onblur doesn’t close some intended dropdowns, and sometimes they will be stuck opened until I manually click on the menu button to close it.
Is this issue related to a specific component? Yes, UI Shell
What did you expect to happen? What happened instead? What would you like to see changed? When focus drops from a submenu, it should close.
What browser are you working in? Firefox
What version of the Carbon Design System are you using? Latest
What offering/product do you work on? Any pressing ship or release dates we should be aware of? IBM Cloud Docs, looking to release Mid April
Steps to reproduce the issue
- Click on one menu to show the dropdown
- Click on a second menu to show the dropdown
- Both menus are opened (is this expected? or should the first menu close?)
- Click anywhere else on the page, the first menu stays open.
Please create a reduced test case in CodeSandbox
Sandbox links are broken, can be reproduced using code from storybook and adding an additional submenu so there are 2.
Additional information
- Screenshots or code
- Notes
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
I just updated both, looks like the issue is solved with the latest releases, thank you!
Woo! Glad to hear. Going to close this out but feel free to reopen if you run into any other issues 👍