Skip to content

Commit e1d94ff

Browse files
committed
fix chaining and add comment
1 parent 2874374 commit e1d94ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web_src/js/features/common-global.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ export function initGlobalCommon() {
9999
$uiDropdowns.filter('.jump').dropdown({
100100
action: 'hide',
101101
onShow() {
102-
this?._tippy.hide();
103-
this?._tippy.disable();
102+
// hide associated tooltip while dropdown is open
103+
this?._tippy?.hide();
104+
this?._tippy?.disable();
104105
},
105106
onHide() {
106-
this?._tippy.enable();
107+
this?._tippy?.enable();
107108
},
108109
fullTextSearch: 'exact'
109110
});

0 commit comments

Comments
 (0)