From f7f65c84102177b9711c42b358eaa563e766b744 Mon Sep 17 00:00:00 2001 From: Sergio Crisostomo Date: Tue, 24 Apr 2018 09:12:47 +0200 Subject: [PATCH] reset query only if no slotOptions are present --- src/components/select/select.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/select/select.vue b/src/components/select/select.vue index 96685aac..a89a8aef 100644 --- a/src/components/select/select.vue +++ b/src/components/select/select.vue @@ -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 = ''; } }