Skip to content

Commit

Permalink
add 100ms delay to tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Aug 5, 2022
1 parent e1d94ff commit c609fba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion web_src/js/modules/tippy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ export function createTippy(target, opts = {}) {
export function initTooltip(el, props = {}) {
const content = el.getAttribute('data-content') || props.content;
if (!content) return null;
return createTippy(el, {content, role: 'tooltip', ...props});
return createTippy(el, {
content,
delay: 100,
role: 'tooltip',
...props,
});
}

export function showTemporaryTooltip(target, content) {
Expand Down

0 comments on commit c609fba

Please sign in to comment.