diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx index 141f17863..8670fbcdc 100644 --- a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx +++ b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx @@ -1,5 +1,5 @@ import { BacklinkCountResponse, BacklinksResponse, SaveSqlConsoleResponse } from "@triliumnext/commons"; -import { TargetedMouseEvent, VNode } from "preact"; +import { VNode } from "preact"; import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "preact/hooks"; import appContext, { EventData, EventNames } from "../components/app_context"; diff --git a/apps/client/src/widgets/react/FormList.tsx b/apps/client/src/widgets/react/FormList.tsx index f76c4f743..dd40bd08c 100644 --- a/apps/client/src/widgets/react/FormList.tsx +++ b/apps/client/src/widgets/react/FormList.tsx @@ -225,9 +225,7 @@ export function FormDropdownSubmenu({ icon, title, children, dropStart, onDropdo if (isMobile()) { setOpenOnMobile(!openOnMobile); - } - - if (onDropdownToggleClicked) { + } else if (onDropdownToggleClicked) { onDropdownToggleClicked(); } }}