-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
I want to use my component like this:
<NewFolderDialog vModel={this.newFolderDialogIsActive} />So I did this:
export default tsx.component({
name: "NewFolderDialog",
props: {
value: {
type: Boolean as PropType<boolean>,
required: true,
},
},
model: {
prop: "value",
event: "active",
},
//...But I'm getting No overload matches this call error:
Property 'value' is missing in type '{ vModel: boolean; }' but required in type '{ value: boolean; }'
It'd be great if I could use vModel with value prop in TSX. And even better if I could change the prop name using model.prop.
Workaround for me is to remove required from the value prop. Another workaround would be to "expand" vModel manually.
Metadata
Metadata
Assignees
Labels
No labels