This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 14
AntD switch is not correctly if type is checkbox. #41
Comments
As I inspected, getValue should be check |
want to spend a PR for this @iamchanii ? |
If I can, YES! |
lovely thank you |
iamchanii
added a commit
to iamchanii/react-hook-form-input
that referenced
this issue
Dec 17, 2019
bluebill1049
pushed a commit
that referenced
this issue
Dec 17, 2019
bluebill1049
pushed a commit
that referenced
this issue
Dec 17, 2019
* Check target.checked is undefined (fix #41) * Fix wrong logic
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When I use Antd switch with RHFInput, I think it is right to set type to
checkbox
. then, Switch is not working. but if type isinput
, it is working.To Reproduce
Checkout below codesandbox.
Codesandbox link
https://codesandbox.io/s/rhf-input-with-antd-switch-2rdwx
Expected behavior
It should be work with
type="checkbox"
nottype="input"
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
I think it is a bug. so I will create a PR for resolve this issue. can I?
The text was updated successfully, but these errors were encountered: