-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Discover] Fix ToolbarSelector when clicking on tabs
#247836
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
[Discover] Fix ToolbarSelector when clicking on tabs
#247836
Conversation
ToolbarSeclector click handler ToolbarSelector click handler
ToolbarSelector click handler ToolbarSelector when clicking on tabs
…ic/obs-presentation-team to @elastic/obs-exploration-team
45d4d2b to
b583019
Compare
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
|
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.
Thanks for fixing it! Should we backport to 9.3?
jennypavlova
left a comment
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 code LGTM, thanks for the fix 💯
| src/platform/packages/shared/shared-ux/storybook/mock @elastic/appex-sharedux | ||
| src/platform/packages/shared/shared-ux/table_persist @elastic/appex-sharedux | ||
| src/platform/packages/shared/shared-ux/toolbar_selector @elastic/obs-presentation-team | ||
| src/platform/packages/shared/shared-ux/toolbar_selector @elastic/obs-exploration-team |
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.
I see we are still marked a reviewer, I guess after we merge this one it will be fixed :)
## Summary Closes elastic#243535 Adds `EuiOutsideClickDetector` wrapper to properly close `ToolbarSelector` popover when user clicks outside, fixing issue where dropdowns persist when clicking on draggable tabs in Discover. ## Before <img width="1438" height="800" alt="image" src="https://github.com/user-attachments/assets/0102db09-19bc-4222-b414-9c7a92a4f0ad" /> ## After https://github.com/user-attachments/assets/dd32905c-ab70-4620-9bf2-caf4a6ef9ed4 --------- Co-authored-by: kibanamachine <[email protected]>
Summary
Closes #243535
Adds
EuiOutsideClickDetectorwrapper to properly closeToolbarSelectorpopoverwhen user clicks outside, fixing issue where dropdowns persist when clicking on draggable tabs in Discover.
Before
After
Screen.Recording.2026-01-05.at.6.38.29.PM.mov