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 |
0 replies
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.someBooleanin the custom component istrue. But the actual value is an empty string.If I instead use the long-hand syntax:
Then
props.context.someBooleanis correctly atrueboolean.Environment
• OS: Web (MacOS)
• Browser Chrome
• Version 0.17
All reactions