Skip to content

Commit ef2e74e

Browse files
committed
fix: update
1 parent a4f7d8a commit ef2e74e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const Switch = React.forwardRef<HTMLButtonElement, SwitchProps>(
9090
});
9191

9292
return (
93-
<label className={`${prefixCls}-wrapper`}>
93+
<span className={`${prefixCls}-wrapper`}>
9494
<button
9595
{...restProps}
9696
type="button"
@@ -118,7 +118,7 @@ const Switch = React.forwardRef<HTMLButtonElement, SwitchProps>(
118118
</span>
119119
</span>
120120
</button>
121-
</label>
121+
</span>
122122
);
123123
},
124124
);

0 commit comments

Comments
 (0)