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.
2 parents 7e707a2 + b97f1a0 commit 2ba8453Copy full SHA for 2ba8453
src/main/js/components/dropdowns/templates.js
@@ -36,6 +36,15 @@ function dropdown() {
36
animation: "dropdown",
37
duration: 250,
38
onShow: (instance) => {
39
+ // Make sure only one instance is visible at all times
40
+ const dropdowns = document.querySelectorAll("[data-tippy-root]");
41
+ Array.from(dropdowns).forEach((element) => {
42
+ // Check if the Tippy.js instance exists
43
+ if (element && element._tippy) {
44
+ // To just hide the dropdown
45
+ element._tippy.hide();
46
+ }
47
+ });
48
const referenceParent = instance.reference.parentNode;
49
50
if (referenceParent.classList.contains("model-link")) {
0 commit comments