Run the code, add some amount of items into menu clicking on button.
Click on added menu items, to remove it.
When you click on menu item to remove it, it is removed, but menu bar is stuck: focused state is on a menu in menu bar, menu cannot be opened again, without focus removing from menuBar.
Click on added menu items, to remove it.
When you click on menu item to remove it, it is removed, but menu bar is stuck: focused state is on a menu in menu bar, menu cannot be opened again, without focus removing from menuBar.