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
Make composite items tabbable before hydration #2601
Conversation
🦋 Changeset detectedLatest commit: 6b71d29 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 6b71d29:
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @ariakit/react@0.2.12 ### Patch Changes - Fixed `CompositeItem` not being tabbable before hydration. ([#2601](#2601)) - Updated dependencies: `@ariakit/react-core@0.2.12`. ## @ariakit/react-core@0.2.12 ### Patch Changes - Fixed `CompositeItem` not being tabbable before hydration. ([#2601](#2601)) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This PR updates the logic that controls whether a composite item is tabbable before hydration. The previous logic was trying to read
store.item(id)
, which could be populated on the initial render if the developer is passing anitems
ordefaultItems
prop to the composite store. Instead, we'll readstate.renderedItems.length
, which will only be truthy after the items are rendered and registered to the store.