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

Multi-type props defined without value gets empty string, should be true [Boolean, String] #7485

Comments

@realcarbonneau
Copy link

realcarbonneau commented Jan 20, 2018

Version

2.5.13

Reproduction link

https://jsfiddle.net/realcarbonneau/68w22cbo/

Steps to reproduce

Define a multi-type Boolean and String Prop, call the component by specifying the prop name (without a value).

What is expected?

Prop contains true (Boolean type)

What is actually happening?

Prop contains an empty string


The sequence does not change the result, both [Boolean, String] and [String, Boolean] give the same result. The version does not change the result either (vue version 1.0.12, 2.2.1, edge on jsfiddle)

@posva
Copy link
Member

posva commented Jan 20, 2018

Hmm, looks like the PR #4539 didn't fix what it was supposed to fix. It's curious that this has been around for 1 year since 2.1.7
Also looks like #3885 didn't take into account the ordering on #3879. So ordering didn't have an impact

@alexgrozav
Copy link

Any progress on this? I'm experiencing this problem as well.

f2009 pushed a commit to f2009/vue that referenced this issue Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment