Fixed Input.js error causing to keep last entries' first letter in form inputs, even when formdata was emptied

This commit is contained in:
Cris
2024-03-20 09:42:23 +01:00
parent 10e57dae2d
commit 842e62b0dd
+2 -2
View File
@@ -160,12 +160,12 @@ export default {
},
modelValueCmp: {
get() {
if (this.$attrs.modelValue === undefined)
if (!this.$attrs.hasOwnProperty('modelValue'))
return this.modelValueDummy;
return this.$attrs.modelValue;
},
set(v) {
if (this.$attrs.modelValue === undefined)
if (!this.$attrs.hasOwnProperty('modelValue'))
this.modelValueDummy = v;
this.$emit('update:modelValue', v);
}