fix(ui): dismiss tooltip on mousedown; hide library dropdown hint while open

TooltipPortal clears the overlay when mousedown hits any [data-tooltip] anchor so click-open controls (e.g. library scope) do not leave a stale hover tooltip. The library scope trigger omits data-tooltip while the dropdown is open.
This commit is contained in:
Maxim Isaev
2026-04-07 14:27:47 +03:00
parent f08619fb3d
commit c36b1ea538
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export default function Sidebar({
aria-label={t('sidebar.libraryScope')}
aria-expanded={libraryDropdownOpen}
aria-haspopup="listbox"
data-tooltip={t('sidebar.libraryScope')}
data-tooltip={libraryDropdownOpen ? undefined : t('sidebar.libraryScope')}
data-tooltip-pos="bottom"
>
{!libraryTriggerPlain ? (