From 0e1da7512ca67e9bf776ed9980451904b4dc30f3 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 10 Apr 2023 15:25:42 -0500 Subject: [PATCH] Toggle: fix toggle acting as a submit button in forms --- app/soapbox/components/ui/toggle/toggle.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/soapbox/components/ui/toggle/toggle.tsx b/app/soapbox/components/ui/toggle/toggle.tsx index 34651e98d2..0311da8acb 100644 --- a/app/soapbox/components/ui/toggle/toggle.tsx +++ b/app/soapbox/components/ui/toggle/toggle.tsx @@ -26,6 +26,7 @@ const Toggle: React.FC = ({ id, size = 'md', name, checked, onChange, r 'cursor-default': disabled, })} onClick={handleClick} + type='button' >