question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MaterialCheckBox breaks after upgrading to 6.x

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bluebill1049commented, Jul 13, 2020

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 use as for a simple component which doesn’t need the manual wire up.

1reaction
iamchathucommented, Jul 13, 2020

What are the benefits of this new introduced method. Previous versions code is much cleaner.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found