-
This commit is contained in:
@@ -3,7 +3,7 @@ Vue.component('tt-checkbox', {
|
||||
label: String,
|
||||
required: Boolean,
|
||||
row: Boolean,
|
||||
value: [String, Number],
|
||||
value: [String, Number, Boolean],
|
||||
hint: String,
|
||||
additionalProps: Object,
|
||||
sm: { type: Boolean, default: false },
|
||||
|
||||
@@ -211,9 +211,10 @@ Vue.component('tt-positions-manager',
|
||||
async editEntry(index) {
|
||||
this.selectedIndex = index;
|
||||
for (const [key, field] of Object.entries(this.config.fields)) {
|
||||
if (field.type === 'autocomplete' && field.emitDisplayValue && this.$refs['autocomplete-' + key][0]) {
|
||||
if (field.type === 'autocomplete' && field.emitDisplayValue) {
|
||||
await this.$nextTick();
|
||||
if (this.positions[index][key + '_text']) {
|
||||
if (this.positions[index][key + '_text'] && this.$refs['autocomplete-' + key][0]) {
|
||||
console.log('inhere');
|
||||
this.$refs['autocomplete-' + key][0].displayValue = this.positions[index][key + '_text'];
|
||||
this.$set(this.formData, key, this.positions[index][key]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user