Skip to content

[EuiFocusTrap] Virtualized options in EuiComboBox cannot be selected with React v17 when inside EuiFocusTrap #4250

@wenchonglee

Description

@wenchonglee

Hey,

I recently updated my project to React 17 and noticed that in cases where I had EuiComboBox in EuiModal and EuiFlyout, clicking any options beyond the first "window" will cause it to scroll to top.

euicombobox_issue

I'm relatively sure that this behavior is caused by EuiFocusTrap, here's a very quickly put together codesandbox that reproduces the problem. You can also downgrade the react-dom version down from 17 to 16 and see that it works fine.

I'm not sure how much the Eui team emphasize on keeping up to React updates. If it's not highly prioritized, I might try to help investigate if I get some free time.

Metadata

Metadata

Assignees

No one assigned

    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