Skip to content

Commit

Permalink
Fix the button type is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 10, 2019
1 parent 7bfc8ce commit c56868f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ToolBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class ToolBar extends React.PureComponent<IToolBarProps, {}> {
{toolbars.map((name: string, key) => {
const Icon = (icon as unknown as IIconProps)[name];
return (
<button key={key} onClick={onClick.bind(this, name)}> {Icon} </button>
<button type="button" key={key} onClick={onClick.bind(this, name)}> {Icon} </button>
);
})}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/ToolBarMode/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default class ToolBarMode extends React.PureComponent<IToolBarModeProps,
return (
<button
key={key}
type="button"
className={classnames({
active: (preview && name === 'preview') || fullscreen && name === 'fullscreen',
})}
Expand Down

0 comments on commit c56868f

Please sign in to comment.