spectrum-web-components
spectrum-web-components copied to clipboard
[Bug]: Slotted tooltip of ActionMenu, Picker etc. should hide when focus moves away (blur)
trafficstars
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
ActionMenu, Picker
Expected behavior
When a user selects an ActionMenu menu item and ActionMenu closes a tooltip is shown. While this behavior itself may be questioned it should at least hide the tooltip when focus is moved away from the ActionMenu.
Actual behavior
After selection an menu-item and closing the ActionMenu tooltip stays open when focus is moved away (element is blurred) with TAB key to another item.
Screenshots
No response
What browsers are you seeing the problem in?
No response
How can we reproduce this issue?
- Go to https://studio.webcomponents.dev/edit/84gusdV7idta5CPqNRiG/src/index.ts?p=stories
- Click on first ActionMenu, select item
- ActionMenu closes, tooltip shows up
- Press TAB to focus next ActionMenu
- Tooltip still stays open
Sample code that illustrates the problem
No response
Logs taken while reproducing problem
No response
I am still unsure, if the tooltip should show after closing ActionMenu and not hovering the ActionMenu. Imho tooltip should only be shown when a user hovers over ActionMenu and not outside. Can we discuss this please if this is desired behavior?