-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: Speed up tree navigation by returning to parent when collapsing… #9547
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
base: main
Are you sure you want to change the base?
Conversation
|
thanks for the PR you can run lint and tests via To run the tests on other versions of react you should do |
I had odd behaviour with I also understand that your ESLint config does not have formatting rules, is that correct? If so, is there a formatting command or preferred IDE setup? My IDE autoformatting made a mess on my branch.
Thanks! I did manage to run the tests, but they fail and I'm not sure why. The story I added shows the feature to work, but I suspect the test setup is slightly different, and probably involves some layers of code that I haven't accounted for. I'll need guidance to move forward on that. |
Nope, nothing special should be needed, you should be able to
Some things that might affect it:
yes, we frequently run |
Oddly enough, running ESLint locally does not fix whitespace issues for me. But hey, CI told me what was missing :)
I found the issue 😬 that test was poorly written. I had to remove the |
… a non-collapsible item
Closes #9546
To address the issue, I add a new opt-in prop to
useTreeStatethat enables the behaviour supported by Primer and the APG, and which we know our users will need (as our own tree implementation, which we want to replace with RAC Tree, currently has it).✅ Pull Request Checklist:
Caution
Please note! I do not know how to run your linter, how to see the RAC Tree documentation, and there are failing tests (though I do not understand the subtleties of KeyboardDelegates and don't understand how to fix them).
I have likely forgotten some code paths in my PR.
📝 Test Instructions:
https://localhost:?????/?path=/story/react-aria-components-tree--nav-to-nearest-collapsible-parent🧢 Your Project:
https://github.com/storybookjs/storybook