Skip to content

[EuiSelectableTemplateSitewide] Clicking on any virtualized options causes scroll to top #4128

Closed

Description

@wenchonglee

Hey,

I've been trying out EuiSelectableTemplateSitewide and I quite like it so far.

I noticed this behavior where clicking any of the options past the first few rendered by react-window will cause the list to be scrolled to the top. You can currently reproduce this by going to the example and searching 'a', then clicking on the last option.


image


Subsequent clicks would work, so having focus on the popover seems to do the trick. Is there a proper workaround or is there an underlying issue?

p.s. I wasn't sure if I should raise an issue for a minor problem like this:
the changelog entry from my PR #4072 had a merge issue and was misplaced in the 29.2.0 section.

Activity

  1. added
    ⚠️ needs validation
    on Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠️ needs validation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions