Skip to content

Commit 8ccd336

Browse files
authored
fix(search-slot): use computed property as reference to search el (sagalbot#1254)
1 parent 2615fa1 commit 8ccd336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@
735735
* @return {void}
736736
*/
737737
toggleDropdown (event) {
738-
const targetIsNotSearch = event.target !== this.$refs.search;
738+
const targetIsNotSearch = event.target !== this.searchEl;
739739
if (targetIsNotSearch) {
740740
event.preventDefault();
741741
}

0 commit comments

Comments
 (0)