Merge branch 'tt-positions-manager/fix-article-input' into 'master'
fixed article input See merge request fronk/thetool!1372
This commit is contained in:
@@ -195,6 +195,12 @@ Vue.component('tt-positions-manager',
|
||||
this.$delete(this.formData, key);
|
||||
}
|
||||
|
||||
if ((typeof field.showCondition === 'function' && field.showCondition(this.formData) === true || !field.showCondition) && field.type === 'input-article' && field.emitDisplayValue && (isNaN(this.formData[key]) || !this.formData[key]) && this.$refs['article-' + key][0]) {
|
||||
console.log(this.$refs['article-' + key][0].$refs.autocomplete);
|
||||
this.$set(this.formData, key + '_text', this.$refs['article-' + key][0].$refs.autocomplete.displayValue);
|
||||
this.$delete(this.formData, key);
|
||||
}
|
||||
|
||||
if (field.emitDisplayValue && this.formData[key] !== null && this.formData[key] !== undefined) {
|
||||
this.$delete(this.formData, key + '_text');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user