Skip to content

Conversation

@kowalczyk-krzysztof
Copy link
Member

@kowalczyk-krzysztof kowalczyk-krzysztof commented Jun 20, 2025

Summary

Closes #8689

This PR fixes an issue with EuiSuperDatePicker where toggling isQuickSelectOnly triggers a full re-render when the selected range uses absolute dates.

Demo of the fix: https://codesandbox.io/p/sandbox/elastic-carson-2mwxrl

Why are we making this change?

To fix a bug where the quick select popover closes after toggling isQuickSelectOnly which results in users having to click the quick select button two times.

Screenshots

Before:

before.mov

After:

after.mov

Impact to users

The are no visual changes. This PR simply changes how isQuickSelectOnly works.

QA

Remove or strikethrough items that do not apply to your PR.

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in both MacOS and Windows high contrast modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
    • If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist
    • If applicable, file an issue to update EUI's Figma library with any corresponding UI changes. (This is an internal repo, if you are external to Elastic, ask a maintainer to submit this request)

@kowalczyk-krzysztof kowalczyk-krzysztof requested a review from a team as a code owner June 20, 2025 07:08
@kowalczyk-krzysztof kowalczyk-krzysztof self-assigned this Jun 20, 2025
@acstll acstll self-requested a review June 26, 2025 08:23
Copy link
Contributor

@acstll acstll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tested the changes locally, everything working as expected. Added a small suggestion regarding the new story.

@kowalczyk-krzysztof thanks again for pushing this forward!

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @kowalczyk-krzysztof

@mgadewoll mgadewoll enabled auto-merge (squash) June 27, 2025 17:34
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @kowalczyk-krzysztof

@mgadewoll mgadewoll merged commit 3d92cb3 into elastic:main Jun 27, 2025
5 checks passed
tkajtoch added a commit to elastic/kibana that referenced this pull request Jul 2, 2025
`104.0.2` ⏩ `104.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)

## Package updates

### `@elastic/eui`

#### [`v104.1.0`](https://github.com/elastic/eui/releases/v104.1.0)

- Added new component token `components.forms.codeInlineBackground`
([#8813](elastic/eui#8813))
- Updated background color for `EuiCode` to use
`components.forms.codeInlineBackground`
([#8813](elastic/eui#8813))
- Added `noItemsMessage` prop to `EuiInMemoryTable`
([#8812](elastic/eui#8812))
- Added prop `delimiter` on `EuiDatePickerRange`
([#8810](elastic/eui#8810))

**Bug fixes**

- Fixed an issue with `EuiSuperDatePicker` where toggling
`isQuickSelectOnly` would cause a full re-render when the selected range
uses absolute dates ([#8810](elastic/eui#8810))

**Deprecations**

- Deprecated `message` prop in `EuiInMemoryTable` in favor of
`noItemsMessage` which is a more meaningful prop name; there are no
functional changes ([#8812](elastic/eui#8812))

### `@elastic/eui-theme-borealis`

#### [`v3.1.0`](https://github.com/elastic/eui/releases/v3.1.0)

- Added new component token `components.forms.codeInlineBackground`
([#8813](elastic/eui#8813))
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
`104.0.2` ⏩ `104.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)

## Package updates

### `@elastic/eui`

#### [`v104.1.0`](https://github.com/elastic/eui/releases/v104.1.0)

- Added new component token `components.forms.codeInlineBackground`
([elastic#8813](elastic/eui#8813))
- Updated background color for `EuiCode` to use
`components.forms.codeInlineBackground`
([elastic#8813](elastic/eui#8813))
- Added `noItemsMessage` prop to `EuiInMemoryTable`
([elastic#8812](elastic/eui#8812))
- Added prop `delimiter` on `EuiDatePickerRange`
([elastic#8810](elastic/eui#8810))

**Bug fixes**

- Fixed an issue with `EuiSuperDatePicker` where toggling
`isQuickSelectOnly` would cause a full re-render when the selected range
uses absolute dates ([elastic#8810](elastic/eui#8810))

**Deprecations**

- Deprecated `message` prop in `EuiInMemoryTable` in favor of
`noItemsMessage` which is a more meaningful prop name; there are no
functional changes ([elastic#8812](elastic/eui#8812))

### `@elastic/eui-theme-borealis`

#### [`v3.1.0`](https://github.com/elastic/eui/releases/v3.1.0)

- Added new component token `components.forms.codeInlineBackground`
([elastic#8813](elastic/eui#8813))
@kowalczyk-krzysztof kowalczyk-krzysztof deleted the fix/super-date-picker-double-click branch September 6, 2025 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[EuiSuperDatePicker] isQuickSelectOnly prop triggers full re-render

4 participants