Skip to content

Commit

Permalink
Add delay for hiding details on demand (#3901)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyi authored Aug 26, 2024
1 parent 1644711 commit ca35d73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/detailsOnDemand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export async function runDetailsOnDemand() {
tippy(element, {
content,
allowHTML: true,
// Add hide delay to allow users reaching the tooltip with
// a mouse before it hides in tricky edge cases, e.g. when
// the DOD spans multiple lines.
delay: [null, 200],
interactive: true,
hideOnClick: false,
arrow: false,
Expand Down

0 comments on commit ca35d73

Please sign in to comment.