Skip to content

Commit 4885fea

Browse files
committed
fix(compiler-dom): handle v-model + v-bind shorthand edge case
1 parent 466b30f commit 4885fea

File tree

1 file changed

+1
-1
lines changed
  • packages/compiler-dom/src/transforms

1 file changed

+1
-1
lines changed

packages/compiler-dom/src/transforms/vModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const transformModel: DirectiveTransform = (dir, node, context) => {
5656
let directiveToUse = V_MODEL_TEXT
5757
let isInvalidType = false
5858
if (tag === 'input' || isCustomElement) {
59-
const type = findProp(node, `type`)
59+
const type = findProp(node, `type`, false, true)
6060
if (type) {
6161
if (type.type === NodeTypes.DIRECTIVE) {
6262
// :type="foo"

0 commit comments

Comments
 (0)