Skip to content

Commit

Permalink
Merge pull request #10982 from nextcloud/backport/10980/stable27
Browse files Browse the repository at this point in the history
[stable27] fix(search): restore app search behaviour (wait for nextTick, use refs)
  • Loading branch information
Antreesy authored Nov 27, 2023
2 parents 0366fde + 54e923f commit 7e39c4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
:class="{ 'icon-loading': loading, 'in-call': isInCall }"
app-name="talk"
@shortkey.native="handleAppSearch">
<LeftSidebar v-if="getUserId && !isFullscreen" />
<LeftSidebar v-if="getUserId && !isFullscreen" ref="leftSidebar" />
<NcAppContent>
<router-view />
</NcAppContent>
Expand Down Expand Up @@ -663,7 +663,9 @@ export default {
emit('toggle-navigation', {
open: true,
})
document.querySelector('.conversations-search input').focus()
this.$nextTick(() => {
this.$refs.leftSidebar.$refs.searchBox.focus()
})
},
},
}
Expand Down

0 comments on commit 7e39c4a

Please sign in to comment.