Repository navigation
[EuiDatePicker] Remove legacy string refs from react-datepicker dropdowns - #9960
weronikaolejniczak merged 2 commits into
Conversation
|
👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually? |
Co-Authored-By: Claude Opus 5 <[email protected]>
…owns React 19 removed support for legacy string refs. Rendering the month, year, or month-year dropdown therefore throws "Expected ref to be a function, an object returned by React.createRef(), or undefined/null" and unmounts the surrounding tree, making EuiDatePicker unusable on React 19 whenever showMonthDropdown / showYearDropdown is enabled. The `ref="options"` props are dead code: `this.refs` is not read anywhere in packages/eui/src, so removing them is behaviour-preserving. Existing date_picker snapshots are unchanged. Fixes elastic#9009 Co-Authored-By: Claude Opus 5 <[email protected]>
bd1259b to
24fee02
Compare
|
Hi @ChrisJamesC 👋🏻 we only accept community contributions for issues labelled as "help wanted". I encourage to look at that list and choose a task from it! |
|
@weronikaolejniczak would there be a chance to consider this change as it fixes the date picker breaking in react 19? This PR is only deleting 3 lines of dead code. |
|
@ChrisJamesC if this is an issue that is personally affecting you when using EUI, we're happy to open the PR for review. |
|
Thanks a lot for your consideration of my answer. This is indeed an issue that's preventing us from using Elastic UI in our project that was upgraded with react-19. Unfortunately we noticed only after the migration as the error makes the app crash when clicking specifically on the date picker month selector. |
|
👋 Since this is a community submitted pull request, a Buildkite build has not been started automatically. Would an Elastic organization member please verify the contents of this pull request and kick off a build manually? |
|
I understand, thank you for the context @ChrisJamesC I'll review it now. |
|
Thanks a lot @weronikaolejniczak ! I'll follow the process better for next contributions. |
|
I think we are missing a string ref in |
`ref={month}` is a string ref in expression form — `month` is the month
name from `monthNames.map()`, not a callback or ref object. React 19
throws on it just as it does on the `ref="options"` literals, so the
month dropdown still crashed after the previous commit.
Like the others, it is dead: `this.refs` is not read anywhere in
packages/eui/src.
Thanks @weronikaolejniczak for catching it.
Co-Authored-By: Claude Opus 5 <[email protected]>
|
buildkite test this |
|
You're right, and I've pushed a fix.
I've now checked every Like the others, this one is dead — this.refs isn't read anywhere in packages/eui/src — so removing it is behaviour-preserving. |
💚 Build Succeeded
History
|
💚 Build Succeeded
|
weronikaolejniczak
left a comment
There was a problem hiding this comment.
CI passes (i.e. no regression for versions we currently support) 🟢 Tested locally, both dropdowns work in Vite + React 19 🟢
We're good to go! Thank you for the contribution and for understanding. In the future, if you'd like to work on an issue that isn't labelled "help wanted" what would help us is a sync in comments. Explain the need to have this issue fixed and let us know you'd like to propose a solution.
|
@weronikaolejniczak thank you a lot. For my own planning, what's your release schedule so I can know when to expect to get this fix? I have a local patch in the meantime. |
|
@ChrisJamesC this should land in a release next week. I cannot say exactly when but we try to release weekly on Monday. |
## Dependency updates `@elastic/eui` - 119.1.0 ⏩ 120.0.0 `@elastic/eui-test-helpers` - 1.4.0 ⏩ 1.5.0 `@elastic/eslint-plugin-eui` - 2.16.0 ⏩ 3.0.0 `@elastic/eui-illustrations` - 1.0.1 ⏩ 1.0.2 > [!WARNING] > Removed unused `EuiIcon` types ([#9884](elastic/eui#9884)): `branchUser`, `continuityAboveBelow`, `continuityBelow`, `function`, `magnet`, `pageSelect`, `securitySignalResolved`, `tear`. ## Package updates ### `@elastic/eui` [v120.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Updated `EuiButtonGroup` (Children API only): ([#9929](elastic/eui#9929)) - Added `variant="selection"` to render the group as selection group - Added `type` prop (values `'single' | 'multi'`) to switch between single or multi selection - Added `display` prop (values: `'regular' | 'highlighted' | 'inverse'`) to render different visual variants - Added `idSelected` prop for single-state selection - Added `idToSelectedMap` prop for multi-state selection - Added `onChange` prop which returns the selected child button `id` - Added `cloudBolt`, `cloudRain`, `cloudSun`, `kubernetesNamespace`, `productTimelion`, `productTSVB`, `push`, `transitionRightIn`, and `transitionRightOut` glyphs to `EuiIcon` ([#9923](elastic/eui#9923)) - Updated the `cube`, `memory`, and `wrench` glyphs in `EuiIcon` with redesigned artwork ([#9923](elastic/eui#9923)) - Updated search synonyms for the `bolt`, `memory`, `plugs`, and `wrench` glyphs in `EuiIcon` ([#9923](elastic/eui#9923)) - Updated `EuiResizableContainer` collapse buttons to use the `transition*` glyphs in place of the `menu*` glyphs ([#9923](elastic/eui#9923)) - Hid undocumented `swatchInput` from glyph docs by categorizing it as `internal` ([#9884](elastic/eui#9884)) **Bug fixes** - Fixed `EuiDatePicker` throwing an error in React 19 when opening the month or year dropdown ([#9960](elastic/eui#9960)) - Fixed the icon documentation listing glyphs and Elastic logos out of alphabetical order ([#9923](elastic/eui#9923)) **Deprecations** - Updated deprecated icon alias mappings: ([#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` - Deprecated the `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `namespace`, `visTimelion`, and `visVisualBuilder` `EuiIcon` types in favor of `cloudRain`, `cloudBolt`, `cloudSun`, `push`, `kubernetesNamespace`, `productTimelion`, and `productTSVB` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([#9923](elastic/eui#9923)) - Deprecated the `menuDown` and `menuUp` `EuiIcon` types in favor of `transitionBottomOut` and `transitionTopOut` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([#9923](elastic/eui#9923)) - Deprecated `EuiIcon` types with no replacement: ([#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Deprecated `EuiIcon` types with a contextual replacement: ([#9884](elastic/eui#9884)) - `folderExclamation` — `linkSlash` (unlink) or `hourglass` (Cases status) - `stopFill` / `stopSlash` — `EuiColorPickerSwatch` for color chips or `stop` otherwise - Deprecated `EuiIcon` types (use the replacements): ([#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` **Breaking changes** - Removed unused `EuiIcon` types: ([#9884](elastic/eui#9884)) - `branchUser` - `continuityAboveBelow` - `continuityBelow` - `function` - `magnet` - `pageSelect` - `securitySignalResolved` - `tear` ### `@elastic/eslint-plugin-eui` [v3.0.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md) - Updated `button-group-no-invalid-children` rule to support checking button groups with `variant="selection"` ([#9950](elastic/eui#9950)) - Added new `button-group-selection-require-id` rule to enforce a required `id` prop on each child button of `EuiButtonGroup` with `variant="selection"` ([#9950](elastic/eui#9950)) - Updated `@elastic/eui/no-deprecated-icon-aliases` with the newly deprecated `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `menuDown`, `menuUp`, `namespace`, `visTimelion`, and `visVisualBuilder` icon aliases ([#9923](elastic/eui#9923)) - Updated `button-group-no-invalid-children` rule to support segmented variant checks ([#9890](elastic/eui#9890)) - Updated `no-deprecated-icon-aliases` with icons that have no replacement: ([#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Updated `no-deprecated-icon-aliases` with icons that have a contextual replacement (warn only, no autofix): ([#9884](elastic/eui#9884)) - `folderExclamation` - `linkSlash` (unlink) or `hourglass` (Kibana Cases status) - `stopFill` / `stopSlash` - `EuiColorPickerSwatch` for color chips or `stop` otherwise - Updated `no-deprecated-icon-aliases` with new icon aliases: ([#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` - Updated `starFilledSpace`, `starMinusFilled` and `starPlusFilled` mappings to `starFill` ([#9884](elastic/eui#9884)) **Deprecations** - Updated deprecated icon alias mappings: ([#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` **Breaking changes** - Removed the `push` icon alias from `@elastic/eui/no-deprecated-icon-aliases`. `push` is now a supported `EuiIcon` glyph again and is no longer autofixed to `send` ([#9923](elastic/eui#9923)) ### `@elastic/eui-illustrations` [v1.0.2](https://github.com/elastic/eui/blob/main/packages/illustrations/changelogs/CHANGELOG_2026.md) **Bug fixes** - Fixed illustrations rendering cropped when more than one was inlined on the same page ([#9973](elastic/eui#9973)) ### `@elastic/eui-test-helpers` [v1.5.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiRangeObject`, a Playwright Component Object for `EuiRange`/`EuiDualRange` ([#9957](elastic/eui#9957)) - Added `EuiDraggableObject` with `reorder(steps)` ([#9936](elastic/eui#9936)) - Added `EuiBasicTableObject` with `rows` and `cells(field)` ([#9933](elastic/eui#9933)) - Added `EuiFilterButtonObject`, a Playwright Component Object for `EuiFilterButton` ([#9942](elastic/eui#9942))
## Dependency updates `@elastic/eui` - 119.1.0 ⏩ 120.0.0 `@elastic/eui-test-helpers` - 1.4.0 ⏩ 1.5.0 `@elastic/eslint-plugin-eui` - 2.16.0 ⏩ 3.0.0 `@elastic/eui-illustrations` - 1.0.1 ⏩ 1.0.2 > [!WARNING] > Removed unused `EuiIcon` types ([elastic#9884](elastic/eui#9884)): `branchUser`, `continuityAboveBelow`, `continuityBelow`, `function`, `magnet`, `pageSelect`, `securitySignalResolved`, `tear`. ## Package updates ### `@elastic/eui` [v120.0.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md) - Updated `EuiButtonGroup` (Children API only): ([elastic#9929](elastic/eui#9929)) - Added `variant="selection"` to render the group as selection group - Added `type` prop (values `'single' | 'multi'`) to switch between single or multi selection - Added `display` prop (values: `'regular' | 'highlighted' | 'inverse'`) to render different visual variants - Added `idSelected` prop for single-state selection - Added `idToSelectedMap` prop for multi-state selection - Added `onChange` prop which returns the selected child button `id` - Added `cloudBolt`, `cloudRain`, `cloudSun`, `kubernetesNamespace`, `productTimelion`, `productTSVB`, `push`, `transitionRightIn`, and `transitionRightOut` glyphs to `EuiIcon` ([elastic#9923](elastic/eui#9923)) - Updated the `cube`, `memory`, and `wrench` glyphs in `EuiIcon` with redesigned artwork ([elastic#9923](elastic/eui#9923)) - Updated search synonyms for the `bolt`, `memory`, `plugs`, and `wrench` glyphs in `EuiIcon` ([elastic#9923](elastic/eui#9923)) - Updated `EuiResizableContainer` collapse buttons to use the `transition*` glyphs in place of the `menu*` glyphs ([elastic#9923](elastic/eui#9923)) - Hid undocumented `swatchInput` from glyph docs by categorizing it as `internal` ([elastic#9884](elastic/eui#9884)) **Bug fixes** - Fixed `EuiDatePicker` throwing an error in React 19 when opening the month or year dropdown ([elastic#9960](elastic/eui#9960)) - Fixed the icon documentation listing glyphs and Elastic logos out of alphabetical order ([elastic#9923](elastic/eui#9923)) **Deprecations** - Updated deprecated icon alias mappings: ([elastic#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` - Deprecated the `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `namespace`, `visTimelion`, and `visVisualBuilder` `EuiIcon` types in favor of `cloudRain`, `cloudBolt`, `cloudSun`, `push`, `kubernetesNamespace`, `productTimelion`, and `productTSVB` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([elastic#9923](elastic/eui#9923)) - Deprecated the `menuDown` and `menuUp` `EuiIcon` types in favor of `transitionBottomOut` and `transitionTopOut` respectively. The deprecated types now render the new glyphs, no longer appear in the icon documentation, and will be removed in a future release ([elastic#9923](elastic/eui#9923)) - Deprecated `EuiIcon` types with no replacement: ([elastic#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Deprecated `EuiIcon` types with a contextual replacement: ([elastic#9884](elastic/eui#9884)) - `folderExclamation` — `linkSlash` (unlink) or `hourglass` (Cases status) - `stopFill` / `stopSlash` — `EuiColorPickerSwatch` for color chips or `stop` otherwise - Deprecated `EuiIcon` types (use the replacements): ([elastic#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` **Breaking changes** - Removed unused `EuiIcon` types: ([elastic#9884](elastic/eui#9884)) - `branchUser` - `continuityAboveBelow` - `continuityBelow` - `function` - `magnet` - `pageSelect` - `securitySignalResolved` - `tear` ### `@elastic/eslint-plugin-eui` [v3.0.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md) - Updated `button-group-no-invalid-children` rule to support checking button groups with `variant="selection"` ([elastic#9950](elastic/eui#9950)) - Added new `button-group-selection-require-id` rule to enforce a required `id` prop on each child button of `EuiButtonGroup` with `variant="selection"` ([elastic#9950](elastic/eui#9950)) - Updated `@elastic/eui/no-deprecated-icon-aliases` with the newly deprecated `cloudDrizzle`, `cloudStormy`, `cloudSunny`, `kqlFunction`, `menuDown`, `menuUp`, `namespace`, `visTimelion`, and `visVisualBuilder` icon aliases ([elastic#9923](elastic/eui#9923)) - Updated `button-group-no-invalid-children` rule to support segmented variant checks ([elastic#9890](elastic/eui#9890)) - Updated `no-deprecated-icon-aliases` with icons that have no replacement: ([elastic#9884](elastic/eui#9884)) - `article` - `dotInCircle` - `kubernetesNode` - `scale` - `securitySignalDetected` - Updated `no-deprecated-icon-aliases` with icons that have a contextual replacement (warn only, no autofix): ([elastic#9884](elastic/eui#9884)) - `folderExclamation` - `linkSlash` (unlink) or `hourglass` (Kibana Cases status) - `stopFill` / `stopSlash` - `EuiColorPickerSwatch` for color chips or `stop` otherwise - Updated `no-deprecated-icon-aliases` with new icon aliases: ([elastic#9884](elastic/eui#9884)) - `analyzeEvent` → `cube` - `annotation` → `flag` - `anomalySwimLane` → `chartHeatmap` - `apps` → `grid` - `container` → `package` - `continuityAbove` → `upload` - `continuityWithin` → `maximize` - `esqlVis` → `query` - `fold` → `minimize` - `frameNext` → `chevronSingleRight` - `framePrevious` → `chevronSingleLeft` - `help` → `question` - `index` → `table` - `ip` → `tokenIP` - `logstashFilter` → `filter` - `logstashInput` → `download` - `logstashOutput` → `upload` - `payment` → `money` - `sessionViewer` → `commandLine` - `singleMetricViewer` → `chartArea` - `spaces` → `grid` - `starEmptySpace` → `star` - `starFillSpace` → `starFill` - `starMinusEmpty` → `star` - `starMinusFill` → `starFill` - `starPlusEmpty` → `star` - `starPlusFill` → `starFill` - `stats` → `chartLine` - `string` → `tokenString` - `tableOfContents` → `listBullet` - `unfold` → `maximize` - `visGoal` → `chartGauge` - `wordWrap` → `lineBreak` - `wordWrapDisabled` → `lineBreakSlash` - Updated `starFilledSpace`, `starMinusFilled` and `starPlusFilled` mappings to `starFill` ([elastic#9884](elastic/eui#9884)) **Deprecations** - Updated deprecated icon alias mappings: ([elastic#9974](elastic/eui#9974)) - `folderClosed` and `folderClose` → `folder` **Breaking changes** - Removed the `push` icon alias from `@elastic/eui/no-deprecated-icon-aliases`. `push` is now a supported `EuiIcon` glyph again and is no longer autofixed to `send` ([elastic#9923](elastic/eui#9923)) ### `@elastic/eui-illustrations` [v1.0.2](https://github.com/elastic/eui/blob/main/packages/illustrations/changelogs/CHANGELOG_2026.md) **Bug fixes** - Fixed illustrations rendering cropped when more than one was inlined on the same page ([elastic#9973](elastic/eui#9973)) ### `@elastic/eui-test-helpers` [v1.5.0](https://github.com/elastic/eui/blob/main/packages/test-helpers/changelogs/CHANGELOG_2026.md) - Added `EuiRangeObject`, a Playwright Component Object for `EuiRange`/`EuiDualRange` ([elastic#9957](elastic/eui#9957)) - Added `EuiDraggableObject` with `reorder(steps)` ([elastic#9936](elastic/eui#9936)) - Added `EuiBasicTableObject` with `rows` and `cells(field)` ([elastic#9933](elastic/eui#9933)) - Added `EuiFilterButtonObject`, a Playwright Component Object for `EuiFilterButton` ([elastic#9942](elastic/eui#9942))
…owns (elastic#9960) Co-authored-by: Claude Opus 5 <[email protected]>
Summary
What: Removes three legacy string refs (
ref="options") from the vendoredreact-datepickerdropdown components.Why: Fixes #9009. On React 19, opening the month, year, or month/year dropdown throws during render:
React 19 removed legacy string refs. Because the throw happens in
markRefduringupdateClassComponent, React unmounts the whole tree — so this takes down the consuming application, not just the date picker.How: The offending props are in
packages/eui/src/components/date_picker/react-datepicker/src/:month_dropdown.js<MonthDropdownOptions ref="options">year_dropdown.js<YearDropdownOptions ref="options">month_year_dropdown.js<MonthYearDropdownOptions ref="options">All three are dead code rather than something needing migration to callback refs —
this.refsis not read anywhere in the package:They appear to be residue from the upstream fork in #5339. Deleting them is therefore behaviour-preserving, which is why this is a deletion rather than a
useRef/callback-ref migration.Worth noting for reviewers: these files match an ESLint ignore pattern, so
react/no-string-refsnever had a chance to flag them. That's likely why they survived this long.API Changes
None — no public prop, type, or token changes.
Screenshots
Not applicable — no visual change. On React 16–18 the rendered output is byte-identical (all 42 existing date_picker snapshots pass unmodified). On React 19 the difference is "throws" vs. "works", which isn't meaningfully screenshottable.
Impact Assessment
Impact level: 🟢 None
Release Readiness
Documentation— no documented behaviour changes.Figma— no design changes.Migration guide— no breaking or visual changes.Adoption plan— bug fix, not a new feature.QA instructions for reviewer
On React 16–18 (current supported range), this should be a no-op:
dropdownMode="scroll", the default).dropdownMode="select"is unaffected.EuiSuperDatePicker's absolute tab still works.To verify the actual fix, a React 19 environment is required: render
<EuiDatePicker showMonthDropdown showYearDropdown />and open either dropdown. Before this change it throws; after, it behaves normally.Checklist before marking Ready for Review
Filled out all sections above
QA: Tested light/dark modes, high contrast, mobile, Chrome/Safari/Edge/Firefox, keyboard-only, screen reader — not done; deletion of an unread ref with no rendered-output change
QA: Tested in CodeSandbox and Kibana — not done, happy to if the team wants it
QA: Tested docs changes— no docs changesTests:
yarn test-unit src/components/date_picker— 18/18 suites, 188 passed, 1 skipped, 42 snapshots unchangedNo new regression test: EUI's Jest environment runs React 18, where string refs still work, so the failure this fixes cannot be reproduced in the current test setup. A meaningful regression test depends on the React 19 test environment tracked in [Epic] React 19 support #8720.
Changelog: Added
Breaking changes: Added— not applicablebreaking changelabelScope note: this does not make EUI React 19 compatible overall (#8720, #7774). It removes one hard crash.
EuiFieldSearch(#9587) is still open, and the<StrictMode>work in #7774 is unaffected by this change.