]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(compiler-dom): handle v-model + v-bind shorthand edge case
authordaiwei <daiwei521@126.com>
Tue, 8 Apr 2025 00:32:24 +0000 (08:32 +0800)
committerdaiwei <daiwei521@126.com>
Tue, 8 Apr 2025 00:32:24 +0000 (08:32 +0800)
packages/compiler-dom/src/transforms/vModel.ts

index 5c28580b9844bc789e28f80f517978c5a0288799..2e8b7228fc44a0c5d1014223f66f1fb702ad6b3d 100644 (file)
@@ -56,7 +56,7 @@ export const transformModel: DirectiveTransform = (dir, node, context) => {
     let directiveToUse = V_MODEL_TEXT
     let isInvalidType = false
     if (tag === 'input' || isCustomElement) {
-      const type = findProp(node, `type`)
+      const type = findProp(node, `type`, false, true)
       if (type) {
         if (type.type === NodeTypes.DIRECTIVE) {
           // :type="foo"