reset query only if no slotOptions are present

This commit is contained in:
Sergio Crisostomo 2018-04-24 09:12:47 +02:00
parent bc348e7ebf
commit f7f65c8410

View file

@ -614,13 +614,13 @@
dropVisible(open){
this.broadcast('Drop', open ? 'on-update-popper' : 'on-destroy-popper');
},
selectOptions(options){
selectOptions(){
if (this.hasExpectedValue){
this.values = this.values.map(this.getOptionData);
this.hasExpectedValue = false;
}
if (options && options.length === 0){
if (this.slotOptions && this.slotOptions.length === 0){
this.query = '';
}
}