mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-22 08:42:32 -05:00
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.
This commit is contained in:
parent
c641a22f2a
commit
3288252dda
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export function createTippy(target, opts = {}) {
|
||||||
onShow: (instance) => {
|
onShow: (instance) => {
|
||||||
// hide other tooltip instances so only one tooltip shows at a time
|
// hide other tooltip instances so only one tooltip shows at a time
|
||||||
for (const visibleInstance of visibleInstances) {
|
for (const visibleInstance of visibleInstances) {
|
||||||
if (visibleInstance.role === 'tooltip') {
|
if (visibleInstance.props.role === 'tooltip') {
|
||||||
visibleInstance.hide();
|
visibleInstance.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue