aboutsummaryrefslogtreecommitdiff
path: root/ui/static/js/nav_handler.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/static/js/nav_handler.js')
-rw-r--r--ui/static/js/nav_handler.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/static/js/nav_handler.js b/ui/static/js/nav_handler.js
index 689f206e..dd106074 100644
--- a/ui/static/js/nav_handler.js
+++ b/ui/static/js/nav_handler.js
@@ -1,5 +1,8 @@
class NavHandler {
- setFocusToSearchInput() {
+ setFocusToSearchInput(event) {
+ event.preventDefault();
+ event.stopPropagation();
+
let toggleSwitchElement = document.querySelector(".search-toggle-switch");
if (toggleSwitchElement) {
toggleSwitchElement.style.display = "none";