We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a9d98 commit ad99b59Copy full SHA for ad99b59
warehouse/static/js/warehouse/index.js
@@ -147,6 +147,18 @@ docReady(() => {
147
}
148
});
149
150
+docReady(() => {
151
+ let dropdownTriggers = document.querySelectorAll("li.dropdown__trigger");
152
+ for (let trigger of dropdownTriggers) {
153
+ trigger.addEventListener("focusin", function () {
154
+ trigger.querySelector("ul.dropdown__content").style.display = "block";
155
+ });
156
+ trigger.addEventListener("focusout", function () {
157
+ trigger.querySelector("ul.dropdown__content").style.display = "none";
158
159
+ }
160
+});
161
+
162
const application = Application.start();
163
const context = require.context("./controllers", true, /\.js$/);
164
application.load(definitionsFromContext(context));
0 commit comments