diff --git a/packages/language-core/lib/codegen/template/elementProps.ts b/packages/language-core/lib/codegen/template/elementProps.ts index 74512d60f8..b5381794d6 100644 --- a/packages/language-core/lib/codegen/template/elementProps.ts +++ b/packages/language-core/lib/codegen/template/elementProps.ts @@ -100,7 +100,10 @@ export function* generateElementProps( continue; } - if (prop.modifiers.some(m => m.content === 'prop' || m.content === 'attr')) { + if ( + prop.name === 'bind' + && prop.modifiers.some(m => m.content === 'prop' || m.content === 'attr') + ) { propName = propName.slice(1); }