MaterialCheckBox breaks after upgrading to 6.x
See original GitHub issueDescribe the bug Boolean field seems getting string value after the upgrade to v6
To Reproduce Change react-hook-form to latest and click on checkbox. Check the codesandbox sample.
Codesandbox link (Required) https://codesandbox.io/s/react-hook-form-issue-ig797?file=/src/App.tsx
Expected behavior If you change back the version to v5.7 it works as expected. Does get selected and return true/false.
Additional context
Seems valueName
, onChange
props has been removed.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Android appcompat-v7:21.0.0 change material checkbox colors
I was upgrading the compat lib only, and found out that everything's perfect running the app on 5.0, but then realized it didn't...
Read more >Releases · material-components/material-components-android
Modular and customizable Material Design UI components for Android ... Update spec link to the new Material3 site (bdb8253); Fix broken column due...
Read more >3 hours trying changing a checkbox color. What I'm doing ...
The checkbox I needed to implement was in theory very simple: white borders, white background that when selected turns green leaving a white ......
Read more >androidx.compose.material - Android Developers
Executes when the user tries to dismiss the Dialog by clicking outside or pressing ... import androidx.compose.material.Checkbox ... elevation: Dp = 6.dp
Read more >Angumar Material Checkbox (forked) - StackBlitz
Use of this source code is governed by an. MIT-style license that. can be found in the LICENSE file at http:/ /angular.io/license -->....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks, @mxcl for understanding. It’s hard to please all external component while we are burying more underneath logic to support them, I consider that harmful in the long run (will cause issue/bug), with
render
it’s much more transparent on what we try to pass down to your component and yet you can still useas
for a simple component which doesn’t need the manual wire up.What are the benefits of this new introduced method. Previous versions code is much cleaner.