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:
commit
0652b2cf57
1 changed files with 1 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue