aboutsummaryrefslogtreecommitdiff
path: root/src/components/SearchModal.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/SearchModal.vue')
-rw-r--r--src/components/SearchModal.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index 6163d88..7e32236 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -27,6 +27,9 @@ export default defineComponent({
this.$emit('search-node', tolNode);
}
},
+ focusInput(){
+ (this.$refs.searchInput as HTMLInputElement).focus();
+ },
},
mounted(){
(this.$refs.searchInput as HTMLInputElement).focus();