Skip to content

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

Closed

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.

Activity

  1. thompsongl commented on Nov 11, 2020

    @thompsongl
    Contributor

    Thanks for reporting, @wenchonglee

    We will be upgrading to React 17 in the near future, but for now remain with a 16.x peerDependencies requirement. Reports like this will be helpful when we begin the work to upgrade.

  2. github-actions commented on May 11, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  3. added
    stale-issue
    on May 11, 2021
  4. wenchonglee commented on May 11, 2021

    @wenchonglee
    ContributorAuthor

    Bumping this up from staleness

    (it would also be nice to hear if the Eui team has any timeline/plans to support React 17)

  5. removed
    stale-issue
    on May 11, 2021
  6. github-actions commented on Nov 7, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  7. added
    stale-issue
    on Nov 7, 2021
  8. removed
    stale-issue
    on Nov 9, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions