From 1a6958966901ca8129a72e0b5c5cbb7f57a1700a Mon Sep 17 00:00:00 2001 From: Francesco Bellini Date: Wed, 18 Sep 2024 17:51:41 +0200 Subject: [PATCH] fix: stop propagation on dropdown trigger (avoid auto-close) --- src/scripts/tutti/10_navbar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/tutti/10_navbar.js b/src/scripts/tutti/10_navbar.js index b6637d3..9e3b1c1 100644 --- a/src/scripts/tutti/10_navbar.js +++ b/src/scripts/tutti/10_navbar.js @@ -49,7 +49,8 @@ setInterval(() => { /* Simple dropdown toggle. * Used on navbar mobile toggle and other dropdowns. */ -function dropdownToggle() { +function dropdownToggle(e) { + e.stopPropagation() let dropdownToggleBtn = this; let dropdownMenuName; let dropdownMenuItem; -- 2.30.2