Skip to content

Commit

Permalink
fix search focus with ref
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 12, 2021
1 parent dd761cd commit dd6dd8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ export default {
}
},
focusSearchInput () {
this.$refs.searchModule.focus()
this.$refs.searchModule?.focus()
}
}
}
Expand Down

0 comments on commit dd6dd8a

Please sign in to comment.