You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/07/02 08:53:32 UTC
[camel-website] 03/08: CAMEL-14958: disable propogation of event on
search click
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git
commit 780f3fc9010ef22f22e3f84d3d77c0691c2c0d54
Author: Aemie <ae...@hotmail.co.uk>
AuthorDate: Sat Jun 27 13:24:56 2020 +0530
CAMEL-14958: disable propogation of event on search click
---
antora-ui-camel/src/js/vendor/algoliasearch.bundle.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js b/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
index e92c1a8..349a21d 100644
--- a/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
+++ b/antora-ui-camel/src/js/vendor/algoliasearch.bundle.js
@@ -25,6 +25,10 @@
}
}
+ search.addEventListener('click', function (e) {
+ e.stopPropagation()
+ })
+
search.addEventListener(
'keyup',
debounce((key) => {
@@ -120,7 +124,8 @@
}),
150
)
- cancel.addEventListener('click', function () {
+ cancel.addEventListener('click', function (e) {
+ e.stopPropagation()
container.className = 'navbar-search results-hidden'
results.innerHTML = ''
search.value = ''