Merge branch 'toggle-submit-fix' into 'develop'

Toggle: fix toggle acting as a submit button in forms

See merge request soapbox-pub/soapbox!2428
This commit is contained in:
Alex Gleason 2023-04-11 13:51:21 +00:00
commit 0652b2cf57

View file

@ -26,6 +26,7 @@ const Toggle: React.FC<IToggle> = ({ id, size = 'md', name, checked, onChange, r
'cursor-default': disabled,
})}
onClick={handleClick}
type='button'
>
<div className={clsx('rounded-full bg-white transition-transform', {
'h-4.5 w-4.5': size === 'sm',