[ic-popover-menu]: Clicking a menu item which closes the popover menu doesn't trigger the icPopoverClosed event
Summary of the bug
When clicking on a menu item which closes ic-popover-menu, the icPopoverClosed event is not triggered. Once the React code snippet has been updated, this event will be used to update state
🪜 How to reproduce
Tell us the steps to reproduce the problem:
- Go to the StackBlitz
- Click the top nav button in the top right to display the popover menu
- Go one level down and click 'find'
- The popover menu should close.
- Click the button in the top right again
- The popover menu doesn't appear
📸 Screenshots or code
View StackBlitz
🖥 📱 Device
- Type: Desktop
- Device: Windows
- OS version: Windows
- Browser version: Chrome
🧐 Expected behaviour
The menu should open
📝 Acceptance Criteria
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.
Given that the popover menu is open
When I click the find menu item and then click the top nav button in the top right
Then the popover menu should appear again
Additional info
A console log has been added to icPopoverClosed to demonstrate that the event is not being called.
Complete this issue before: https://github.com/mi6/ic-design-system/issues/1086