diff options
author | Marcin Aman <maman@virtuslab.com> | 2020-05-21 14:55:05 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-05-25 10:23:59 +0200 |
commit | 86adf79963a34302602b45d4b5ef6ef913996176 (patch) | |
tree | d9b98e7c33ebd0998e674279c6301adb623bebf5 /plugins | |
parent | c8dba800d9f3be90e073bf9de9d48ab9da9c85e7 (diff) | |
download | dokka-86adf79963a34302602b45d4b5ef6ef913996176.tar.gz dokka-86adf79963a34302602b45d4b5ef6ef913996176.tar.bz2 dokka-86adf79963a34302602b45d4b5ef6ef913996176.zip |
Change event listener to propagate events further
Diffstat (limited to 'plugins')
-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); }; }); |