Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix toggles in properties not working

Abdullah Atta2ea9b04863fd
diff --git a/apps/web/src/components/properties/toggle.tsx b/apps/web/src/components/properties/toggle.tsx
index eca66ec6b..e16eb81ff 100644
--- a/apps/web/src/components/properties/toggle.tsx
+++ b/apps/web/src/components/properties/toggle.tsx
@@ -56,6 +56,7 @@ function Toggle(props: ToggleProps) {
<Switch
sx={{ m: 0, bg: isOn ? "accent" : "icon-secondary" }}
checked={isOn}
+ onClick={(e) => e.stopPropagation()}
/>
</Flex>
);