-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Description
Vue version
3.5.18
Link to minimal reproduction
Steps to reproduce
To reproduce this bug you need to define a type with generics, one of the props will be optional or the generic type.
in the componente, use defineProps<GenericInterface>.
if the generic is using boolean as the generic type, the defineProps macro will set the attribute to false
instead of leaving it as undefined
What is expected?
The prop should have an undefined
value.
What is actually happening?
The prop is set to false
System Info
System:
OS: macOS 15.5
CPU: (8) arm64 Apple M2
Memory: 125.22 MB / 24.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.17.0 - ~/.nvm/versions/node/v22.17.0/bin/node
Yarn: 1.22.22 - ~/.nvm/versions/node/v22.17.0/bin/yarn
npm: 10.9.2 - ~/.nvm/versions/node/v22.17.0/bin/npm
Browsers:
Chrome: 138.0.7204.169
Safari: 18.5
npmPackages:
vue: ^3.5.18 => 3.5.18
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels