Skip to content

[EuiSuperDatePicker] Remove static ID #4536

Closed

Description

@myasonik

EuiSuperDatePicker uses a static IDs which breaks expectations that IDs are unique.

If multiple of this same component are rendered on a page at a time (which Kibana has recently started doing), this has the potential to cause problems with assistive tech and also makes running automated tests a struggle because each instance is flagged as an issue generating a lot of noise.

It should be replaced with htmlIdGenerator

Location: https://github.com/elastic/eui/blob/master/src/components/date_picker/super_date_picker/quick_select_popover/quick_select_popover.tsx#L185

Activity

  1. GaganAgarwal77 commented on Feb 17, 2021

    @GaganAgarwal77
    Contributor

    @myasonik Can I work on this issue?

  2. myasonik commented on Feb 17, 2021

    @myasonik
    ContributorAuthor

    Yup, but you don't need to ask

    From our Contributing Guidelines:

    In general, once on Github, any issue can be worked on by the community... If you find an issue that is not assigned, assume that you are welcome to work on it and can submit a pull request. Feel free to leave a comment to mark intent and avoid conflict.

  3. changed the title [-]Remove static ID from EuiSuperDatePicker[/-] [+][EuiSuperDatePicker] Remove static ID[/+] on Mar 19, 2021
  4. thompsongl commented on Jul 19, 2021

    @thompsongl
    Contributor

    Closed by #4543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions