summaryrefslogtreecommitdiffstats
path: root/src/components/LeftSidebar/SearchBox/SearchBox.vue
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-08-23 16:12:20 +0200
committerJoas Schilling <coding@schilljs.com>2021-08-23 16:30:02 +0200
commitf700cbc36bf8192843126af02bdf5ff38b639c42 (patch)
treeaf8c191cbf8753f0ca012859970240ebbb60b906 /src/components/LeftSidebar/SearchBox/SearchBox.vue
parenta58d76c3ae7489cd4dec063d2bd36ca0eb69c3cc (diff)
Fix event names to kebap-case
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components/LeftSidebar/SearchBox/SearchBox.vue')
-rw-r--r--src/components/LeftSidebar/SearchBox/SearchBox.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/LeftSidebar/SearchBox/SearchBox.vue b/src/components/LeftSidebar/SearchBox/SearchBox.vue
index 50c2d10e1..14e2d0aac 100644
--- a/src/components/LeftSidebar/SearchBox/SearchBox.vue
+++ b/src/components/LeftSidebar/SearchBox/SearchBox.vue
@@ -85,10 +85,10 @@ export default {
/**
* Listen to routeChange global events and focus on the input
*/
- EventBus.$on('routeChange', this.focusInputIfRoot)
+ EventBus.$on('route-change', this.focusInputIfRoot)
},
beforeDestroy() {
- EventBus.$off('routeChange', this.focusInputIfRoot)
+ EventBus.$off('route-change', this.focusInputIfRoot)
},
methods: {
// Focus the input field of the searchbox component.