Skip to content

Commit c56868f

Browse files
committed
Fix the button type is missing.
1 parent 7bfc8ce commit c56868f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/ToolBar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class ToolBar extends React.PureComponent<IToolBarProps, {}> {
2424
{toolbars.map((name: string, key) => {
2525
const Icon = (icon as unknown as IIconProps)[name];
2626
return (
27-
<button key={key} onClick={onClick.bind(this, name)}> {Icon} </button>
27+
<button type="button" key={key} onClick={onClick.bind(this, name)}> {Icon} </button>
2828
);
2929
})}
3030
</div>

src/components/ToolBarMode/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export default class ToolBarMode extends React.PureComponent<IToolBarModeProps,
4646
return (
4747
<button
4848
key={key}
49+
type="button"
4950
className={classnames({
5051
active: (preview && name === 'preview') || fullscreen && name === 'fullscreen',
5152
})}

0 commit comments

Comments
 (0)