aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Aman <maman@virtuslab.com>2020-05-21 14:55:05 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-05-25 10:23:59 +0200
commit86adf79963a34302602b45d4b5ef6ef913996176 (patch)
treed9b98e7c33ebd0998e674279c6301adb623bebf5
parentc8dba800d9f3be90e073bf9de9d48ab9da9c85e7 (diff)
downloaddokka-86adf79963a34302602b45d4b5ef6ef913996176.tar.gz
dokka-86adf79963a34302602b45d4b5ef6ef913996176.tar.bz2
dokka-86adf79963a34302602b45d4b5ef6ef913996176.zip
Change event listener to propagate events further
-rw-r--r--plugins/base/search-component/src/main/js/search/app-root.js8
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);
};
});