Skip to content

Conversation

@kpatticha
Copy link
Contributor

Summary

Closes #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

image

After

Screen.Recording.2026-01-05.at.6.38.29.PM.mov

@kpatticha kpatticha requested a review from a team as a code owner January 5, 2026 16:40
@kpatticha kpatticha changed the title Fix ToolbarSeclector click handler Fix ToolbarSelector click handler Jan 5, 2026
@kpatticha kpatticha changed the title Fix ToolbarSelector click handler [Discover] Fix ToolbarSelector when clicking on tabs Jan 5, 2026
@kpatticha kpatticha added release_note:fix backport:skip This PR does not require backporting v9.4.0 labels Jan 5, 2026
@kpatticha kpatticha requested a review from a team January 5, 2026 16:43
…ic/obs-presentation-team to @elastic/obs-exploration-team
@kpatticha kpatticha force-pushed the 243535-popover-fix-with-tabs branch from 45d4d2b to b583019 Compare January 5, 2026 16:52
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout: [ platform / maps ] plugin / Full screen mode
  • [job] [logs] Scout: [ platform / maps ] plugin / serverless-oblt - Maps - Full screen mode

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
datasetQuality 588.6KB 588.6KB +98.0B
discover 1.3MB 1.3MB +98.0B
total +196.0B

History

Copy link
Contributor

@davismcphee davismcphee left a 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?

Copy link
Member

@jennypavlova jennypavlova left a 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
Copy link
Member

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 :)

@kpatticha kpatticha enabled auto-merge (squash) January 7, 2026 11:49
@kpatticha kpatticha merged commit c877598 into elastic:main Jan 7, 2026
13 checks passed
devamanv pushed a commit to devamanv/kibana that referenced this pull request Jan 12, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:fix v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Metrics][Discover] Dropdowns persist at top-left on tab switch

6 participants