Skip to content

Commit 98af0e8

Browse files
authored
fix: Make dropdowns toggle correctly on click/hover combo (ietf-tools#4265)
Fixes ietf-tools#4095
1 parent de4f1fe commit 98af0e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/static/js/ietf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ $(document)
9494
$(document)
9595
.ready(function () {
9696

97-
function dropdown_hover() {
97+
function dropdown_hover(e) {
9898
var navbar = $(this)
9999
.closest(".navbar");
100100
if (navbar.length === 0 || navbar.find(".navbar-toggler")
101101
.is(":hidden")) {
102102
$(this)
103103
.children(".dropdown-toggle")
104-
.dropdown("toggle");
104+
.dropdown(e.type == "mouseenter" ? "show" : "hide");
105105
}
106106
}
107107

0 commit comments

Comments
 (0)