Skip to content

Commit 88ed8d4

Browse files
committed
Fixed unresponsive vue-select after clicking custom no-options (sagalbot#703)
1 parent e0584cd commit 88ed8d4

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

dev/dev.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@
7878
<em>{{ `${option.author.firstName} ${option.author.lastName}` }}</em>
7979
</template>
8080
</v-select>
81+
<v-select placeholder="Vue select with custom option" >
82+
<span slot="no-options">Custom no options message</span>
83+
</v-select>
8184
</div>
8285
</body>
8386

src/components/Select.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -969,15 +969,14 @@
969969
* @return {void}
970970
*/
971971
onSearchBlur() {
972-
if (this.mousedown && !this.searching) {
972+
if(this.mousedown){
973973
this.mousedown = false
974-
} else {
975-
if (this.clearSearchOnBlur) {
976-
this.search = ''
977-
}
978-
this.open = false
979-
this.$emit('search:blur')
980974
}
975+
if (this.clearSearchOnBlur) {
976+
this.search = ''
977+
}
978+
this.open = false
979+
this.$emit('search:blur')
981980
},
982981
983982
/**

0 commit comments

Comments
 (0)