fluentui
fluentui copied to clipboard
[Bug]: Toolbar submenu does not close when another submenu opens
Library
React Northstar / v0 (@fluentui/react-northstar)
System Info
React 17
Are you reporting Accessibility issue?
no
Reproduction
https://codesandbox.io/s/toolbar-submenu-react17-r2lk9v?file=/example.js
Bug Description
Have a Toolbar with a menu which contains multiple submenus.
Open first submenu, then open the second submenu without closing the previous one.
Actual Behavior
The first submenu remains open.

Expected Behavior
The first submenu closes.
Logs
No response
Requested priority
High
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] The provided reproduction is a minimal reproducible example of the bug.