Skip to content

Build your personal knowledge base with Trilium Notes

fix(widgets/toggle): double event triggering when in menu

Elian Doran483327c8087e
diff --git a/apps/client/src/widgets/react/FormList.tsx b/apps/client/src/widgets/react/FormList.tsx
index 8be2836053..f1374712c1 100644
--- a/apps/client/src/widgets/react/FormList.tsx
+++ b/apps/client/src/widgets/react/FormList.tsx
@@ -146,9 +146,10 @@ export function FormListToggleableItem({ title, currentValue, onChange, ...props
}
}}>
<FormToggle
- switchOnName={title} switchOffName={title}
+ switchOnName={title}
+ switchOffName={title}
currentValue={currentValue}
- onChange={onChange}
+ onChange={() => {}}
/>
</FormListItem>
);