refactor of autocomplete

This commit is contained in:
Gerard 2018-04-18 14:44:07 +02:00
parent 25d099513d
commit bb0e6dd994
2 changed files with 7 additions and 3 deletions

View File

@ -125,8 +125,12 @@ export default class Autocomplete extends Input {
this.selection = data;
else
this.selection = data[0];
} else
this.selection = null;
} else {
let selection = {};
selection[this.showField] = this._field;
selection[this.valueField] = this._field;
this.selection = selection;
}
}
refreshDisplayed() {

View File

@ -5,7 +5,7 @@ vn-autocomplete > div > .mdl-textfield {
& > input {
cursor: pointer;
height: 26px;
height: 30px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;