-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Improve popover behavior #74487
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
@cchaos this was originally written down in 7.5. Do you have a preference for one of these potential workarounds? |
Can someone show an example of this "bugginess"? There's nothing extra added to the typical EuiPopover component and we haven't hadn't any complaints like this before, so I'm just struggling to understand what is happening. What should be happening is the button that triggers the popover should also close it (should be a toggle button). When the popover is open, clicking anywhere outside of the popover should close it. Is this not what is happening? |
@cchaos Because Lens has so many clickable areas, the behavior that can happen is that the user clicks outside the popover onto another clickable thing, which opens something new. |
I often click on a field to see what values are in it, decide “yeah, that’s worth plotting” and then drag it over. The popover doesn’t auto-close when I do that, nor when I click on the general page. I have to explicitly go back and click on the field to get the popover to close. Screen.Recording.2021-03-26.at.6.47.25.AM.movAnd another where the popover persists when scrolling: another.movHere's another example where a user starts interacting with settings and viz types with the popover persisting: more.mov |
Thanks @gose for those examples. One has an easy fix, the other, not so much.
The best solution is to add a
I think this should be better now. We did do some recent work with EuiPopover and the handling of ensuring that even clicking on outside interact-able elements will close the popover. But let me know if this is not the case, and the specific instance. |
I m closing this as it doesnt seem relevant anymore |
Some popovers, like the field item popover, are not easily closeable. It feels buggy, but the solution is not totally obvious. Some options might be:
The text was updated successfully, but these errors were encountered: