diff options
author | Joas Schilling <coding@schilljs.com> | 2023-08-10 13:57:08 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-10 19:09:53 +0000 |
commit | 4bbca0a9e2c790b02107379928ab27d9c6b8fc1e (patch) | |
tree | b904d5964809bd34efec55cb6dea558ca5540b3d | |
parent | 60f09ade0f73ce90cce8ae0a7e8e2a085a48f9fb (diff) |
fix(search): Don't focus the search as it hides "filters" and "adding" now
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | src/components/LeftSidebar/SearchBox/SearchBox.vue | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/components/LeftSidebar/SearchBox/SearchBox.vue b/src/components/LeftSidebar/SearchBox/SearchBox.vue index c78e34309..d13fab303 100644 --- a/src/components/LeftSidebar/SearchBox/SearchBox.vue +++ b/src/components/LeftSidebar/SearchBox/SearchBox.vue @@ -39,8 +39,6 @@ import Magnify from 'vue-material-design-icons/Magnify.vue' import NcTextField from '@nextcloud/vue/dist/Components/NcTextField.js' -import { EventBus } from '../../../services/EventBus.js' - export default { name: 'SearchBox', components: { @@ -87,16 +85,6 @@ export default { }, }, - mounted() { - this.focusInputIfRoot() - /** - * Listen to routeChange global events and focus on the input - */ - EventBus.$on('route-change', this.focusInputIfRoot) - }, - beforeDestroy() { - EventBus.$off('route-change', this.focusInputIfRoot) - }, methods: { updateValue(value) { this.$emit('update:value', value) @@ -106,12 +94,6 @@ export default { focus() { this.$refs.searchConversations.focus() }, - // Focuses the input if the current route is root. - focusInputIfRoot() { - if (this.$route.name === 'root') { - this.focus() - } - }, /** * Emits the abort-search event and re-focuses the input */ |