We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b6e0f commit 1d55454Copy full SHA for 1d55454
packages/runtime-dom/src/directives/vModel.ts
@@ -85,7 +85,10 @@ export const vModelText: ModelDirective<
85
return
86
}
87
88
- el.value = value == null ? '' : value
+ const newValue = value == null ? '' : value
89
+ if (el.value !== newValue) {
90
+ el.value = newValue
91
+ }
92
93
94
packages/runtime-dom/src/modules/props.ts
@@ -28,7 +28,10 @@ export function patchDOMProp(
28
// store value as _value as well since
29
// non-string values will be stringified.
30
el._value = value
31
32
33
34
35
36
37
if (value === '' && typeof el[key] === 'boolean') {
0 commit comments