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

Fix switch input #136

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Fix switch input #136

merged 1 commit into from
Jun 21, 2024

Conversation

quentingrchr
Copy link
Contributor

Bug description

Checked state was internally managed instead of being controlled by parent
This was causing some sync issue in a page that as the same switch twice (ex: https://digest.club/teams/[teamSlug])

How to reproduce

  1. Go to https://digest.club/teams/[teamSlug]
  2. Click on the top View all bookmarks switch
  3. The bottom View all bookmarks switch is not checked

Fix

Now the switch is a controlled component

Screenshots

image
image

Copy link

vercel bot commented Jun 20, 2024

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

Name Status Preview Comments Updated (UTC)
digestclub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 20, 2024 1:57pm

@quentingrchr quentingrchr marked this pull request as ready for review June 20, 2024 14:07
@quentingrchr quentingrchr merged commit 7b43c28 into main Jun 21, 2024
3 checks passed
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.

1 participant