-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Description
Vue version
3.5.13
Link to minimal reproduction
Steps to reproduce
When doing a boolean | string prop an empty string (which is nullish) is cast to a true value. If the union is reversed this does not happen.
What is expected?
Empty strings should not be cast at all to a type: boolean.
What is actually happening?
Empty strings are cast to a type: true when the boolean is the first item in the union
System Info
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels