From 86adf79963a34302602b45d4b5ef6ef913996176 Mon Sep 17 00:00:00 2001 From: Marcin Aman Date: Thu, 21 May 2020 14:55:05 +0200 Subject: Change event listener to propagate events further --- plugins/base/search-component/src/main/js/search/app-root.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/base/search-component') 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); }; }); -- cgit