Skip to content

EuiSuperDatePicker seems to refresh pages unexpectedly #7503

Closed

Description

@BryceRyan

Describe the bug
When wrapped in an EuiForm with the component set to form, the EuiSuperDatePicker will refresh the page while you are setting the date fields

Impact and severity
Low

Environment and versions
Replicated in provided Code Sandbox on EUI's website EUI version 92.2.1

To Reproduce
Steps to reproduce the behavior:

  1. Wrap an EuiSuperDatePicker with an EuiForm with component='form' set
  2. Select the EuiSuperDatePicker to get the start date -> end date to appear with a popover open on the start
  3. Click on the start or end buttons (as if to close the start popover or open the end popover)
  4. Notice that the page refreshes

Expected behavior
When the start or end date picker popovers close, the page should not refresh. It should instead continue on as normal.

Minimum reproducible sandbox
sandbox

Additional context
Did not occur when component was not set to 'form'

Activity

  1. added
    ⚠️ needs validation
    on Feb 2, 2024
  2. cee-chen commented on Feb 2, 2024

    @cee-chen
    Contributor

    Oh jeez haha, how did this go unnoticed for over 5 years? 😭 Thanks so much for catching this Bryce!

  3. removed
    ⚠️ needs validation
    on Feb 2, 2024
  4. self-assigned this
    on Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions