Fixed #4938 - Calendar: Input value is not updated when model is changed externally

pull/5656/head
tugcekucukoglu 2024-04-24 13:13:07 +03:00
parent 8a79cdecff
commit 65ecb9fb97
1 changed files with 9 additions and 6 deletions

View File

@ -563,14 +563,17 @@ export default {
id: function (newValue) {
this.d_id = newValue || UniqueComponentId();
},
modelValue(newValue) {
this.updateCurrentMetaData();
modelValue: {
deep: true,
handler(newValue) {
this.updateCurrentMetaData();
if (!this.typeUpdate && !this.inline && this.input) {
this.input.value = this.formatValue(newValue);
if (!this.typeUpdate && !this.inline && this.input) {
this.input.value = this.formatValue(newValue);
}
this.typeUpdate = false;
}
this.typeUpdate = false;
},
showTime() {
this.updateCurrentMetaData();