Skip to content

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

Closed
@realcarbonneau

Description

@realcarbonneau

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions