-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Description
Version
3.2.31
Reproduction link
Steps to reproduce
See the minimal reproduction.
What is expected?
Both myValue
and myOtherValue
should be undefined
by default.
What is actually happening?
myOtherValue
(where only the type constructor is defined) ends up false
instead.
That a Boolean
ends up false
by default kinda makes sense, but is also inconsistent with the documentation. All the types should all behave predictably for consistency, so either the documentation needs to specify this, or it has to be changed.
The documentation states that "An absent optional prop will have undefined value" at https://vuejs.org/guide/components/props.html#prop-validation (A bit down under "Additional details:")
sondh0127
Metadata
Metadata
Assignees
Labels
No labels