Skip to content

Commit c609fba

Browse files
committed
add 100ms delay to tooltips
1 parent e1d94ff commit c609fba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

web_src/js/modules/tippy.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ export function createTippy(target, opts = {}) {
2323
export function initTooltip(el, props = {}) {
2424
const content = el.getAttribute('data-content') || props.content;
2525
if (!content) return null;
26-
return createTippy(el, {content, role: 'tooltip', ...props});
26+
return createTippy(el, {
27+
content,
28+
delay: 100,
29+
role: 'tooltip',
30+
...props,
31+
});
2732
}
2833

2934
export function showTemporaryTooltip(target, content) {

0 commit comments

Comments
 (0)