Skip to content

When using [Boolean, String] props, Boolean does not work properly #7763

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

Closed
alexgrozav opened this issue Mar 7, 2018 · 2 comments
Closed

Comments

@alexgrozav
Copy link

alexgrozav commented Mar 7, 2018

Version

2.5.13

Reproduction link

https://jsfiddle.net/50wL7mdz/165238/

Steps to reproduce

Create a component property that has [Boolean, String] types. The HTML5-like attribute doesn't behave like a normal Boolean value anymore, instead it gets discarded as empty string.

What is expected?

I would expect both the HTML5 attribute and the v-bind attribute to have the same output.

What is actually happening?

When adding String as a prop type as well, the HTML5 attribute version is not working.

@alexgrozav
Copy link
Author

Seems related to #3879

@posva
Copy link
Member

posva commented Mar 7, 2018

Duplicate of #7485

@posva posva marked this as a duplicate of #7485 Mar 7, 2018
@posva posva closed this as completed Mar 7, 2018
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

No branches or pull requests

2 participants