eui
eui copied to clipboard
[EuiSuperDatePicker] `isQuickSelectOnly` prop triggers full re-render
Toggling the isQuickSelectOnly prop in EuiSuperDatePicker will trigger a full re-render when the selected range uses absolute dates (e.g. 2025-04-28T07:49:15.722Z).
This causes the quick select popover to unexpectedly close.
Impact and severity
Severity is low because it does not create any blockers. Affects Unified Search in Kibana with papercut-kind issue
Minimum reproducible sandbox
https://codesandbox.io/p/devbox/proud-fog-m6t4tx?workspaceId=ws_QbUjMNBh1UKYjrpTMMPPCg
https://github.com/user-attachments/assets/ff688f76-dd74-48e1-bd32-5a1043c779bf
https://github.com/user-attachments/assets/750d5234-def3-4185-b6cd-e016c193d013
Expected behavior
The quick select popover remains open after clicking on it regardless of isQuickSelectOnly being changed.
Additional context
- Original issue in Kibana: https://github.com/elastic/kibana/issues/177053
- Fix PR in Kibana: https://github.com/elastic/kibana/pull/218769
- Related EUI PR: https://github.com/elastic/eui/pull/8380