Skip to content

Build your personal knowledge base with Trilium Notes

fix(client/dropdown): tooltip flickering due to child elements

Elian Doranf7955a9040d1
diff --git a/apps/client/src/widgets/react/Dropdown.tsx b/apps/client/src/widgets/react/Dropdown.tsx
index 5416e38ac3..dec0660c06 100644
--- a/apps/client/src/widgets/react/Dropdown.tsx
+++ b/apps/client/src/widgets/react/Dropdown.tsx
@@ -117,8 +117,8 @@ export default function Dropdown({ id, className, buttonClassName, isStatic, chi
aria-expanded="false"
id={id ?? ariaId}
disabled={disabled}
- onMouseOver={() => showTooltip()}
- onMouseLeave={() => hideTooltip()}
+ onMouseEnter={showTooltip}
+ onMouseLeave={hideTooltip}
{...buttonProps}
>
{text}