Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsxindex 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>);