From 3288252ddaaab03531bfef9d567a9921efedae80 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 19 May 2023 22:12:30 +0200 Subject: [PATCH] Fix duplicate tooltip hiding (#24814) A tippy instance's role is actually on `props.role`. This makes duplicate tooltip hiding work again after https://github.com/go-gitea/gitea/pull/24688. --- web_src/js/modules/tippy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js index abae3d33d..df2143b0e 100644 --- a/web_src/js/modules/tippy.js +++ b/web_src/js/modules/tippy.js @@ -20,7 +20,7 @@ export function createTippy(target, opts = {}) { onShow: (instance) => { // hide other tooltip instances so only one tooltip shows at a time for (const visibleInstance of visibleInstances) { - if (visibleInstance.role === 'tooltip') { + if (visibleInstance.props.role === 'tooltip') { visibleInstance.hide(); } }