diff options
author | silverwind <me@silverwind.io> | 2023-05-19 22:12:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 20:12:30 +0000 |
commit | 3288252ddaaab03531bfef9d567a9921efedae80 (patch) | |
tree | 83a2762ade355a4b078e240203c342a207ace202 | |
parent | c641a22f2a7f5c404accb67f6aea4a000f7f6e80 (diff) | |
download | gitea-3288252ddaaab03531bfef9d567a9921efedae80.tar.gz gitea-3288252ddaaab03531bfef9d567a9921efedae80.zip |
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.
-rw-r--r-- | web_src/js/modules/tippy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/modules/tippy.js b/web_src/js/modules/tippy.js index abae3d33d0..df2143b0ef 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(); } } |