修复ActionIcon可能会被当作表单提交按钮的问题。
This commit is contained in:
parent
8efb3ec318
commit
7b26c95a9a
|
@ -18,7 +18,7 @@ export function ActionIcon({ icon, onClick, extendClassName }: ActionIconProps)
|
|||
);
|
||||
|
||||
return (
|
||||
<button onClick={handleClick} className={cx(styles.action_icon, extendClassName)}>
|
||||
<button type="button" onClick={handleClick} className={cx(styles.action_icon, extendClassName)}>
|
||||
<Icon icon={icon} className={styles.icon} />
|
||||
</button>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user