mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-14 14:26:00 +00:00
refactor(global-search): change event listener to window level for global search modal
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user