Skip to content

Commit

Permalink
docs: add first search result watcher doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tmthyadms committed Nov 21, 2023
1 parent fe46205 commit 3a29113
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/search-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
watch: {
results: {
handler() {
// next tick to wait for the DOM to update
this.$nextTick(() => {
const firstSearchItem =
document.getElementById("search-item-0").firstChild;
Expand Down

0 comments on commit 3a29113

Please sign in to comment.