Skip to content

Build your personal knowledge base with Trilium Notes

chore(layout/note_actions): address requested changes

Elian Doran065e97c9407b
diff --git a/apps/client/src/widgets/FloatingButtonsDefinitions.tsx b/apps/client/src/widgets/FloatingButtonsDefinitions.tsx
index 141f17863f..8670fbcdce 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 f76c4f743c..dd40bd08cc 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();
}
}}