We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8db0017 commit 2f98264Copy full SHA for 2f98264
packages/language-core/lib/codegen/template/elementProps.ts
@@ -160,7 +160,7 @@ export function* generateElementProps(
160
}
161
yield `,${newLine}`;
162
163
- if (prop.name === 'model' && prop.modifiers.length) {
+ if (isComponent && prop.name === 'model' && prop.modifiers.length) {
164
const propertyName = prop.arg?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION
165
? !prop.arg.isStatic
166
? `[__VLS_tryAsConstant(\`$\{${prop.arg.content}\}Modifiers\`)]`
0 commit comments