Repository navigation
[EuiSelectable] Fix unvirtualized variant crashing on selecting option - #9326
Merged
weronikaolejniczak merged 4 commits intoJan 21, 2026
Merged
weronikaolejniczak merged 4 commits into
weronikaolejniczak merged 4 commits into
Conversation
weronikaolejniczak
force-pushed
the
fix/selectable-unvirtualized
branch
from
January 19, 2026 11:50
dc4bd28 to
b9d0899
Compare
weronikaolejniczak
marked this pull request as ready for review
January 19, 2026 11:50
weronikaolejniczak
force-pushed
the
fix/selectable-unvirtualized
branch
from
January 19, 2026 11:50
b9d0899 to
837278c
Compare
acstll
self-requested a review
January 20, 2026 14:55
acstll
requested changes
Jan 20, 2026
acstll
left a comment
Contributor
There was a problem hiding this comment.
The fix is working as expected and the code looks correct. I shared one suggestion and a doubt regarding the tests.
Thanks for tackling this one 🙌
Collaborator
💚 Build SucceededHistory
|
Collaborator
💚 Build Succeeded
History
|
acstll
approved these changes
Jan 21, 2026
acstll
left a comment
Contributor
There was a problem hiding this comment.
🟢 Again thanks for the fix and for addressing my comments 🙌
weronikaolejniczak
added a commit
to weronikaolejniczak/eui
that referenced
this pull request
Jan 23, 2026
acstll
added a commit
to elastic/kibana
that referenced
this pull request
Jan 28, 2026
`112.0.0` ⏩ `112.1.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Changes - Update `span_links_badge.tsx` conditional `onClick` props on `EuiBadge` to satisfy TypeScript 93d7fae - Update snapshots 24c2f9a ## Package updates ### `@elastic/eui` [`v112.1.0`](https://github.com/elastic/eui/releases/tag/v112.1.0) - Updated `timeline` icon glyph ([#9331](elastic/eui#9331)) - Updated `EuiContextMenu` panels to allow passing `data-test-subj`, `aria-label`, `className` and `css` props ([#9323](elastic/eui#9323)) - Added "zoom in" functionality to time window buttons in `EuiSuperDatePicker` ([#9325](elastic/eui#9325)) - Added `displayName` to `EuiButton`, `EuiButtonEmpty`, `EuiDescriptionList` and its sub-components, `EuiEmptyPrompt`, `EuiFlexGrid`, `EuiFlexItem`, `EuiIcon`, `EuiImage`, `EuiLoadingLogo`, `EuiPageSection`, `EuiPageSidebar`, `EuiPageTemplate` and its sub-components and `EuiPanel` ([#9324](elastic/eui#9324)) - Added `fill` prop (defaults to `false`) to `EuiBadge` component that controls whether the badge should use filled or non-filled (less intense) colors. By default, badges will now render as the non-filled variant. ([#9306](elastic/eui#9306)) - Updated EuiBadge design to have rounded corners and improved paddings ([#9302](elastic/eui#9302)) **Bug fixes** - Fixed non-virtualized `EuiSelectable` throwing SyntaxError when selecting an option ([#9326](elastic/eui#9326)) - Fixed an issue where `push` flyouts in a stacked layout calculated the content offset based on the hidden main flyout's width instead of the visible child flyout's width ([#9322](elastic/eui#9322)) ### @elastic/eui-theme-borealis [`v5.4.0`](https://github.com/elastic/eui/blob/16f9b31d753d963d7738049e7a176fcaf6e81e73/packages/eui-theme-borealis/changelogs/CHANGELOG_2026.md#v540) - Updated `badgeBackground` color token value to equal `backgroundFilledText` ([#9306](elastic/eui#9306)) ### @elastic/eui-docusaurus-theme [`v2.2.0`](https://github.com/elastic/eui/blob/16f9b31d753d963d7738049e7a176fcaf6e81e73/packages/docusaurus-theme/changelogs/CHANGELOG_2026.md#v220) - Added `extraFiles` prop to the `Demo` component. It allows to pass extra files that will be added to the Codesandbox instance. ([#9317](elastic/eui#9317)) - Updated the `IMPORT_REGEX` to include relative imports so that all imports are removed from the snippet. All imported references have to be passed to `Demo` in the `scope` prop. ([#9317](elastic/eui#9317)) --------- Co-authored-by: Tomasz Kajtoch <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated
EuiSelectablequerying from#${selector}(id selector) to[id="${selector}"](attribute selector) to allow for unescaping special characters like a colon:.Tests
With the test added and without the fix, the whole test suite is failing due to an uncaught Syntax Error:
as expected. That is enough to cover this bug but I added additional assertion for the scroll behavior itself.
Why are we making this change?
It has been reported on Slack and on #8740 that unvirtualized
EuiSelectableis causing issues when selecting an option. The before-mentioned task is unrelated.The issue is recent, likely appeared after Kibana's transition to React 18.
Here's a quick reproduction Codesandbox.
Screenshots #
Before
536328318-e1c5feed-8650-4859-acee-c9293634d9fc.mov
Impact to users
🟢 This is a bug fix. Not a breaking change. No changes needed on consumer side.
QA
Specific checklist
General checklist
@defaultif default values are missing) and playground toggles