-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TreeView scrolling instead of expanding on initial click #3095
Comments
@mperrotti can you take a look at this and triage? |
👋🏻 @mperrotti is this on your radar? Should we move to "Up next" or "In progress"? |
I was able to reproduce the issue, but I'm stumped on why this is happening. My guess is it's some undesired side-effect of the focus management we implemented for accessibility. I'm going to pair with @colebemis this week to try and triage. |
@jdrush89 - I'm not able to reproduce this in Storybook. Could you record a video or show me exactly how you were able to reproduce in Storybook? cc @colebemis |
@mperrotti |
@jdrush89 - I was able to reproduce by focusing the TextInput before attempting to expand a node. Thanks! |
Description
The issue is described here https://github.com/orgs/community/discussions/48301#discussioncomment-5455654
It looks like if the treeview does not currently have focus and the chevron of another item is clicked while the current item is off screen, the treeview will scroll to the current item instead of expanding the clicked item.
Steps to reproduce
The issue can be repro'd on dotcom by selecting an item near the top of the tree, moving focus off the tree, scrolling down until the current item is offscreen, then clicking on the chevron of another item.
It can also be repro'd on the primer storybook with the following example:
Version
v35.23.0
Browser
Chrome
The text was updated successfully, but these errors were encountered: