diff options
-rw-r--r-- | plugins/base/search-component/src/main/js/search/app-root.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/base/search-component/src/main/js/search/app-root.js b/plugins/base/search-component/src/main/js/search/app-root.js index 5d650581..3544c61b 100644 --- a/plugins/base/search-component/src/main/js/search/app-root.js +++ b/plugins/base/search-component/src/main/js/search/app-root.js @@ -19,11 +19,11 @@ function useComponentVisible(initialIsVisible) { }; useEffect(() => { - document.addEventListener("keydown", handleHideDropdown, true); - document.addEventListener("click", handleClickOutside, true); + document.addEventListener("keydown", handleHideDropdown, false); + document.addEventListener("click", handleClickOutside, false); return () => { - document.removeEventListener("keydown", handleHideDropdown, true); - document.removeEventListener("click", handleClickOutside, true); + document.removeEventListener("keydown", handleHideDropdown, false); + document.removeEventListener("click", handleClickOutside, false); }; }); |