Replies: 2 comments
-
This is true — unfortunately we currently don’t have a great way to make this work "exactly" like vue, however in our own internal inputs we use the For example: https://formkit.link/5e2b7df4f9b28dbf95910440c393884a |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Reproduction
https://formkit.link/40fd78f583d09a156cee0128be17eac1
Describe the bug
If you have a custom input that accepts a boolean prop, Vue's boolean casting feature does not work. See the reproduction playground.
If I use this:
Then the expected value of
props.context.someBoolean
in the custom component istrue
. But the actual value is an empty string.If I instead use the long-hand syntax:
Then
props.context.someBoolean
is correctly atrue
boolean.Environment
• OS: Web (MacOS)
• Browser Chrome
• Version 0.17
Beta Was this translation helpful? Give feedback.
All reactions