2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

Refactoring for pull request #703

This commit is contained in:
Marek Meyer
2018-11-19 11:59:10 +01:00
parent cacacfc5a8
commit ba4462a514
+2 -3
View File
@@ -969,7 +969,6 @@
* @return {void} * @return {void}
*/ */
onSearchBlur() { onSearchBlur() {
if (this.mousedown && !this.searching) { if (this.mousedown && !this.searching) {
this.mousedown = false this.mousedown = false
} else { } else {
@@ -977,13 +976,13 @@
this.search = '' this.search = ''
} }
this.closeSearchOptions() this.closeSearchOptions()
return
} }
// Fixed bug where no-options message could not be closed // Fixed bug where no-options message could not be closed
if(this.search.length === 0 && this.options.length === 0){ if(this.search.length === 0 && this.options.length === 0){
this.closeSearchOptions() this.closeSearchOptions()
return
} }
}, },
/** /**