Passing any prop to generic component makes other props not required (defineModel) #4972
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
🔨 p3-minor-bug
Vue - Official extension or vue-tsc version
2.1.10
VSCode version
1.94.2
Vue version
3.5.12
TypeScript version
5.6.3
System Info
No response
package.json dependencies
No response
Steps to reproduce
The bugs are described in the comments of the code.
App.vue
Comp.vue
What is expected?
Bug 1:
Render functions should have proper type based on the provided value to the generic component.Moved to: vuejs/core#12307
Bug 2: Passing any/non-existing prop to a generic component should not make the component's model value "not required".
What is actually happening?
Bug 1:
Render functions have 'unknown' type, regardless of the provided value to the generic component.Moved to: vuejs/core#12307
Bug 2: Passing any/non-existing prop to a generic component makes the component's model value "not required".
Link to minimal reproduction
https://github.com/DrWarpMan/vue-generic-bug
Any additional comments?
Possibly related to PR: #4823 (Issue: #4822)
The text was updated successfully, but these errors were encountered: