refactor of autocomplete
This commit is contained in:
parent
25d099513d
commit
bb0e6dd994
|
@ -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() {
|
||||
|
|
|
@ -5,7 +5,7 @@ vn-autocomplete > div > .mdl-textfield {
|
|||
|
||||
& > input {
|
||||
cursor: pointer;
|
||||
height: 26px;
|
||||
height: 30px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
|
Loading…
Reference in New Issue