-
Notifications
You must be signed in to change notification settings - Fork 844
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
[EuiDataGrid] Fix cell popovers not closing on outside grid click #7387
[EuiDataGrid] Fix cell popovers not closing on outside grid click #7387
Conversation
- thanks to the moved anchor behavior, we no longer need this, and it's actually messing up other UX
- I had the DOM markup/hierarchy wrong, so the cell popover was never closing + add bonus regresison test for ensuring that clicking other cell actions does not close the popover
- Escape key was causing a flash of animation if the mouse was not already hovered over the cell - this prevents it - DOM traversal is starting to feel pretty shaky, but not totally sure what to do about that
c00f6e0
to
49a1d12
Compare
@tkajtoch do you mind giving this a quick QA/review sometime before EOW? 🙏 Just needed to knock this out, then I'm planning on taking a look at Kibana shenanigans later today! |
buildkite test this |
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
Non-code review; completed both QA steps successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look and work great! 🚢
Summary
I noticed this bug while working on another (already in production) datagrid focus bug. Clicking anywhere outside the cell popover should auto close the popover; but right now in latest main it does not. This bug was introduced by #7343, so I want to get the fix in before the next release. I've added several E2E tests for it as well so it doesn't regress again.
QA
General checklist
- [ ] Checked in both light and dark modes- [ ] Checked in mobileand screenreader modesjest andcypress tests- [ ] A changelog entry exists and is marked appropriately.- I'm skipping the changelog on this since it's a bugfix for something that's still in main / hasn't yet been released- [ ] If applicable, added the breaking change issue label (and filled out the breaking change checklist)