Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime-core): empty boolean props #844

Merged
merged 1 commit into from
Mar 16, 2020
Merged

Conversation

jods4
Copy link
Contributor

@jods4 jods4 commented Mar 15, 2020

If you define the following property:
props: { active: Boolean }
And then use it without a value:
<Component active>
Then it is not set to true but to ''.

There are in fact 2 different bugs in source code preventing this from working, check the changes.

There were no tests for props (just a TODO), I added one test for this specific fix.

Fixes #843

@yyx990803 yyx990803 merged commit c7ae269 into vuejs:master Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Boolean props conversions don't work
2 participants