Skip to content

Commit ba4462a

Browse files
committed
Refactoring for pull request sagalbot#703
1 parent cacacfc commit ba4462a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/Select.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -969,21 +969,20 @@
969969
* @return {void}
970970
*/
971971
onSearchBlur() {
972-
973972
if (this.mousedown && !this.searching) {
974973
this.mousedown = false
975974
} else {
976975
if (this.clearSearchOnBlur) {
977976
this.search = ''
978977
}
979978
this.closeSearchOptions()
979+
return
980980
}
981-
982981
// Fixed bug where no-options message could not be closed
983982
if(this.search.length === 0 && this.options.length === 0){
984983
this.closeSearchOptions()
984+
return
985985
}
986-
987986
},
988987
989988
/**

0 commit comments

Comments
 (0)