Skip to content

Commit

Permalink
Prevent invisible hovering toolbar from taking focus
Browse files Browse the repository at this point in the history
Broke moving between editable texts using tab inside hotspots tooltip.

REDMINE-20673
  • Loading branch information
tf committed Aug 1, 2024
1 parent c4b492b commit b4d1908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function HoveringToolbar({position}) {
const rect = domRange.getBoundingClientRect()
const outerRect = outerRef.current.getBoundingClientRect()

el.style.opacity = 1;
el.style.visibility = 'visible';
el.style.left = `${rect.left - outerRect.left}px`;

if (position === 'above') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
z-index: 2;
top: -10000px;
left: -10000px;
opacity: 0;
visibility: hidden;
white-space: nowrap;
}

Expand Down

0 comments on commit b4d1908

Please sign in to comment.