diff --git a/src/components/SearchPopup.vue b/src/components/SearchPopup.vue index 506e738..37d48a5 100644 --- a/src/components/SearchPopup.vue +++ b/src/components/SearchPopup.vue @@ -43,7 +43,7 @@ export default { watch: { isOpen(val) { if (val) { - this.$refs.query.focus() + this.$nextTick(() => this.$refs.query.focus()) } } },