diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-03-25 19:56:22 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-03-25 19:56:22 +1100 |
| commit | 58aba42dbd153c1d51ddd845f88648cd78d56ded (patch) | |
| tree | d5facb5efe033f75cdd4105e1603aa301f581e33 /src/components/SearchModal.vue | |
| parent | b59e007e6d23483abe8973fe5c21412ddf8709b7 (diff) | |
Fix typescript errors
Diffstat (limited to 'src/components/SearchModal.vue')
| -rw-r--r-- | src/components/SearchModal.vue | 4 |
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'] }); |
