Closed peter-kwan closed 6 days ago
"If I say I don't want it, I mouse out, doesn't close" - Peter Kwan
This is the real issue, we need to add a click-away handler on our Menu/Dropdown component (not sure which one) to close the menu when we lose focus on the parent element.
If "Select resource" is open, and we click anywhere besides in the open dropdown, the dropdown should close as the user has indicated they are no longer interested and their focus is elsewhere.
Steps to Reproduce the bug
Expected Behavior When I click the Resource menu when the widget menu is open, the widget menu should get closed.
Screenshots
https://github.com/praetorian-inc/chariot-ui/assets/17729960/5a02da18-f552-4f11-8460-d04d74032080