Skip to content
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

Use [hidden] on group instead of changing render structure #27

Merged
merged 3 commits into from
Aug 9, 2022

Conversation

pacocoursey
Copy link
Owner

Fixes #26

I risked this change in c95c9a0 but didn't realize each item would be remounted with a new id when the group is hidden, which breaks a lot of logic that relies on each item having a stable id.

@vercel
Copy link

vercel bot commented Aug 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cmdk-website ✅ Ready (Inspect) Visit Preview Aug 9, 2022 at 8:25PM (UTC)

@raunofreiberg
Copy link
Sponsor Collaborator

Very nice

@raunofreiberg raunofreiberg merged commit e9ef1e5 into main Aug 9, 2022
@raunofreiberg raunofreiberg deleted the paco/fix-unstable-ids branch August 9, 2022 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sometimes cannot go down with down arrow
2 participants