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.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/SearchModal.vue b/src/components/SearchModal.vue
index 6675885..91e6748 100644
--- a/src/components/SearchModal.vue
+++ b/src/components/SearchModal.vue
@@ -14,11 +14,11 @@ export default defineComponent({
}
},
onSearchEnter(){
- this.$emit('search-node', this.$refs.searchInput.value);
+ this.$emit('search-node', (this.$refs.searchInput as HTMLInputElement).value);
},
},
mounted(){
- this.$refs.searchInput.focus();
+ (this.$refs.searchInput as HTMLInputElement).focus();
},
emits: ['search-node', 'search-close']
});