Related to #1
Can repro directly on demo site here - close the menu and attempt to re-open it.
When I render:
<PopoverMenu label={ <span>Foo</span> }>
<MenuItem><Link onClick={console.log}>MENU</Link></MenuItem>
</PopoverMenu>
I end up with a menu button as expected. Focusing the button via keyboard controls does not display the menu.
Apparent cause is that OverlayTrigger listens for onBlur and closes the menu when the menu button is blurred. However, opening the menu will trigger Menu's focusIfNeeded, causing focus to be placed on the menu item, which blurs the menu trigger, causing the menu to close.
Related to #1
Can repro directly on demo site here - close the menu and attempt to re-open it.
When I render:
I end up with a menu button as expected. Focusing the button via keyboard controls does not display the menu.
Apparent cause is that
OverlayTriggerlistens foronBlurand closes the menu when the menu button is blurred. However, opening the menu will triggerMenu'sfocusIfNeeded, causing focus to be placed on the menu item, which blurs the menu trigger, causing the menu to close.