From 98af0e8a58bc2cb95612257a0b1c236d9c0d790e Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Sun, 24 Jul 2022 08:13:12 -0400 Subject: [PATCH] fix: Make dropdowns toggle correctly on click/hover combo (#4265) Fixes #4095 --- ietf/static/js/ietf.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ietf/static/js/ietf.js b/ietf/static/js/ietf.js index 115d2e0ae..8d93823cd 100644 --- a/ietf/static/js/ietf.js +++ b/ietf/static/js/ietf.js @@ -94,14 +94,14 @@ $(document) $(document) .ready(function () { - function dropdown_hover() { + function dropdown_hover(e) { var navbar = $(this) .closest(".navbar"); if (navbar.length === 0 || navbar.find(".navbar-toggler") .is(":hidden")) { $(this) .children(".dropdown-toggle") - .dropdown("toggle"); + .dropdown(e.type == "mouseenter" ? "show" : "hide"); } }