Skip to content

Commit 294b207

Browse files
authored
fix(volar/jsx-directive): show errors for default v-model (#981)
1 parent 648f9e9 commit 294b207

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/volar/src/jsx-directive/v-model.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ function transform(
150150
? isRadioOrCheckbox(node, options)
151151
? 'v-model'
152152
: [[modelValue, start + 2]]
153-
: [modelValue.slice(0, 3), [modelValue.slice(3), start]]) as Code[]),
153+
: [
154+
[modelValue.slice(0, 3), start],
155+
[modelValue.slice(3), start],
156+
]) as Code[]),
154157
)
155158

156159
if (modifiers.length) {

0 commit comments

Comments
 (0)