Skip to content

TreeView scrolling instead of selecting #2505

Description

@jdrush89

Description

If I scroll the currently active file out of view in the tree, then try to click on a file to select it, it scrolls the active file back into view instead of selecting.

Steps to reproduce

  1. Go to https://jdrush89-primer-upgrade-and-file-tree.review-lab.github.com/primer/react/blob/main/src/ActionMenu.tsx
  2. scroll the tree down and try to select a file like Spinner.tsx
  3. The tree scrolls when clicking instead of selecting.

Version

v35.13.0

Browser

Chrome

Activity

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

    bugSomething isn't workingcomponent: TreeViewIssues related to the TreeView componentreact

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions