diff options
Diffstat (limited to 'core/src/views/GlobalSearch.vue')
-rw-r--r-- | core/src/views/GlobalSearch.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/views/GlobalSearch.vue b/core/src/views/GlobalSearch.vue index 2bca15ec905..24547fd6270 100644 --- a/core/src/views/GlobalSearch.vue +++ b/core/src/views/GlobalSearch.vue @@ -26,7 +26,7 @@ <Magnify class="global-search__trigger" :size="22" /> </template> </NcButton> - <GlobalSearchModal :is-visible="showGlobalSearch" :class="'global-search-modal'" /> + <GlobalSearchModal :class="'global-search-modal'" :is-visible="showGlobalSearch" @update:isVisible="handleModalVisibilityChange" /> </div> </template> @@ -54,6 +54,9 @@ export default { toggleGlobalSearch() { this.showGlobalSearch = !this.showGlobalSearch }, + handleModalVisibilityChange(newVisibilityVal) { + this.showGlobalSearch = newVisibilityVal + }, }, } </script> |