Fixed position-manager
This commit is contained in:
@@ -169,7 +169,9 @@ Vue.component('tt-positions-manager',
|
|||||||
},
|
},
|
||||||
checkEmitDisplayValueAutocomplete() {
|
checkEmitDisplayValueAutocomplete() {
|
||||||
for (const [key, field] of Object.entries(this.config.fields)) {
|
for (const [key, field] of Object.entries(this.config.fields)) {
|
||||||
if (typeof field.showCondition === 'function' && field.showCondition(this.formData) === true && field.type === 'autocomplete' && field.emitDisplayValue && (isNaN(this.formData[key]) || !this.formData[key]) && this.$refs['autocomplete-' + key][0]) {
|
console.log("HI");
|
||||||
|
if ((typeof field.showCondition === 'function' && field.showCondition(this.formData) === true || !field.showCondition) && field.type === 'autocomplete' && field.emitDisplayValue && (isNaN(this.formData[key]) || !this.formData[key]) && this.$refs['autocomplete-' + key][0]) {
|
||||||
|
console.log("hi");
|
||||||
this.$set(this.formData, key + '_text', this.$refs['autocomplete-' + key][0].displayValue);
|
this.$set(this.formData, key + '_text', this.$refs['autocomplete-' + key][0].displayValue);
|
||||||
this.$delete(this.formData, key);
|
this.$delete(this.formData, key);
|
||||||
}
|
}
|
||||||
@@ -263,4 +265,4 @@ Vue.component('tt-positions-manager',
|
|||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user