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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user