File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2828 <div class =" flex mb-2 space-x-2 items-start border-rounded bg-gray-100 p-2 handle" >
2929 <div >{{ index + 1 }}</div >
3030
31- <SelectControl @change =" (value) => columns[ index].name = value" :selected =" columns[index].name" >
31+ <SelectControl @change =" (value) => changeField( index, value) " :selected =" columns[index].name" >
3232 <option value =" " >- Select field -</option >
3333
3434 <optgroup label =" Imported column" >
@@ -161,6 +161,15 @@ export default {
161161 columns: this .columns ,
162162 separator: this .rawSeparator ,
163163 });
164+ },
165+
166+ changeField (index , value ) {
167+ this .columns [index].name = value;
168+
169+ // Reset 'value' when needed
170+ if (value !== ' custom' ) {
171+ this .columns [index].value = ' ' ;
172+ }
164173 }
165174 }
166175}
You can’t perform that action at this time.
0 commit comments