diff --git a/client/components/MessageSearchForm.vue b/client/components/MessageSearchForm.vue index 233e099f..340d7e2d 100644 --- a/client/components/MessageSearchForm.vue +++ b/client/components/MessageSearchForm.vue @@ -104,6 +104,10 @@ export default { mounted() { this.searchInput = this.$route.query.q; this.searchOpened = this.onSearchPage; + + if (!this.searchInput) { + this.$refs.searchInputField.focus(); + } }, methods: { closeSearch() {