Skip to content

EuiSuperDatePicker seems to refresh pages unexpectedly #7503

@BryceRyan

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'

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions