Component's props
cannot correctly validate required
on a Boolean prop
#3362
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
🐞 bug
Something isn't working
Version
3.0.7
Reproduction link
https://jsfiddle.net/cafpskt5/22/
Steps to reproduce
bool: { type: Boolean, required: true }
inprops
)What is expected?
Gives a warning
[Vue warn]: Missing required prop: \"bool\""
What is actually happening?
No warning message output.
:bool=
a string or number, it indeed can be validated and gives a warning message ([Vue warn]: Invalid prop: type check failed for prop \"bool\". Expected Boolean, got String with value \"1\".
).The text was updated successfully, but these errors were encountered: