Warehouse/improve2

This commit is contained in:
Luca Haid
2025-04-24 15:11:57 +00:00
parent f06264d129
commit 29a1520387
3 changed files with 6 additions and 2 deletions
@@ -100,7 +100,9 @@ Vue.component('tt-autocomplete', {
},
methods: {
setOldDisplayValue(newValue, oldValue) {
if (this.emitDisplayValue && newValue) this.$emit('displayValue', newValue);
if (this.emitDisplayValue && newValue && typeof this.value !== 'number') {
this.$emit('displayValue', newValue);
}
this.oldDisplayValue = oldValue;
},
async updateDisplayValue(newValue, oldValue) {