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: Fix Switch not toggling. #985

Merged
merged 1 commit into from
Dec 15, 2023
Merged

fix: Fix Switch not toggling. #985

merged 1 commit into from
Dec 15, 2023

Conversation

stephenh
Copy link
Contributor

No description provided.


return (
<div
<label
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A previous styling change changed this top-level element from a label to a div, but that seems to have broken the input-flips-to-true/false because the input isn't wrapped in a label anymore.

This is a little janky b/c we now have two labels in this component, but the tests/stories show that this fixes the regression, so I'm prioritizing getting the fix out vs. a perfect DOM structure that doesn't have duplicate labels.

@stephenh stephenh merged commit e2a06bd into main Dec 15, 2023
6 checks passed
@stephenh stephenh deleted the restore-label-wrapper branch December 15, 2023 16:03
Copy link
Contributor

@bdow bdow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

homebound-team-bot pushed a commit that referenced this pull request Dec 15, 2023
## [2.331.1](v2.331.0...v2.331.1) (2023-12-15)

### Bug Fixes

* Fix Switch not toggling. ([#985](#985)) ([e2a06bd](e2a06bd))
@homebound-team-bot
Copy link

🎉 This PR is included in version 2.331.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants