aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/modules/tippy.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/modules/tippy.js')
-rw-r--r--web_src/js/modules/tippy.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js
index 3a8c7e09c2..abae3d33d0 100644
--- a/web_src/js/modules/tippy.js
+++ b/web_src/js/modules/tippy.js
@@ -18,8 +18,11 @@ export function createTippy(target, opts = {}) {
visibleInstances.delete(instance);
},
onShow: (instance) => {
+ // hide other tooltip instances so only one tooltip shows at a time
for (const visibleInstance of visibleInstances) {
- visibleInstance.hide(); // hide other instances
+ if (visibleInstance.role === 'tooltip') {
+ visibleInstance.hide();
+ }
}
visibleInstances.add(instance);
},