From 065e97c9407b160721e5289e16ffe6fff256db76 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 15 Dec 2025 10:41:58 +0200 Subject: [PATCH] chore(layout/note_actions): address requested changes --- apps/client/src/widgets/FloatingButtonsDefinitions.tsx | 2 +- apps/client/src/widgets/react/FormList.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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(); } }}