refactor(global-search): change event listener to window level for global search modal
This commit is contained in:
parent
872c0cbe72
commit
364080a447
1 changed files with 2 additions and 2 deletions
|
|
@ -31,8 +31,8 @@
|
|||
}
|
||||
},
|
||||
init() {
|
||||
// Listen for custom event from navbar search button
|
||||
this.$el.addEventListener('open-global-search', () => {
|
||||
// Listen for custom event from navbar search button at window level
|
||||
window.addEventListener('open-global-search', () => {
|
||||
this.openModal();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue