mirror of https://github.com/jenkinsci/jenkins.git
Backporting for LTS 2.516.1 (part 2) (#10822)
Label conflicting PRs / main (push) Has been cancelled
Details
Label conflicting PRs / main (push) Has been cancelled
Details
This commit is contained in:
commit
fe37c57d58
|
@ -36,7 +36,11 @@ function dropdown() {
|
|||
animation: "dropdown",
|
||||
duration: 250,
|
||||
onShow: (instance) => {
|
||||
// Make sure only one instance is visible at all times
|
||||
// Make sure only one instance is visible at all times in case of breadcrumb
|
||||
if (
|
||||
instance.reference.classList.contains("hoverable-model-link") ||
|
||||
instance.reference.classList.contains("hoverable-children-model-link")
|
||||
) {
|
||||
const dropdowns = document.querySelectorAll("[data-tippy-root]");
|
||||
Array.from(dropdowns).forEach((element) => {
|
||||
// Check if the Tippy.js instance exists
|
||||
|
@ -45,6 +49,8 @@ function dropdown() {
|
|||
element._tippy.hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const referenceParent = instance.reference.parentNode;
|
||||
|
||||
if (referenceParent.classList.contains("model-link")) {
|
||||
|
|
Loading…
Reference in New Issue