Why is the value of a checkbox using useCheckbox
''
instead of 'on'
?
#3516
Unanswered
brandonpittman
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I'm not sure I follow. If you're not passing a value, why would it get We don't come up with a value for you because that usually needs to be a string that matches something on your server should you want to submit a form. So it's empty until you supply one. The value doesn't matter if you are submitting the data via js because you'd store the data in some js object. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ran into this today and was wondering why is the value of a checkbox using
useCheckbox
''
instead of'on'
?I'm not passing it a value, but it's getting assigned to an empty string.
Beta Was this translation helpful? Give feedback.
All reactions