Skip to content

Commit 3288252

Browse files
authored
Fix duplicate tooltip hiding (#24814)
A tippy instance's role is actually on `props.role`. This makes duplicate tooltip hiding work again after #24688.
1 parent c641a22 commit 3288252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/modules/tippy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function createTippy(target, opts = {}) {
2020
onShow: (instance) => {
2121
// hide other tooltip instances so only one tooltip shows at a time
2222
for (const visibleInstance of visibleInstances) {
23-
if (visibleInstance.role === 'tooltip') {
23+
if (visibleInstance.props.role === 'tooltip') {
2424
visibleInstance.hide();
2525
}
2626
}

0 commit comments

Comments
 (0)