Skip to content

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

@wenchonglee

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠️ needs validationFor bugs that need confirmation as to whether they're reproducible

    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