Skip to content

Commit

Permalink
Define type of button on Button component
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Nov 28, 2016
1 parent f67d16b commit 1bad8b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/components/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const onMouseDown = (onClick, e) => {
const Button = ({ icon, label, active, onClick }) => (
<button
className={`RichEditor-styleButton${active ? ' RichEditor-activeButton' : ''}${icon ? ` icon icon-${icon}` : ''}`}
type="button"
onMouseDown={onMouseDown.bind(null, onClick)}
>
{label}
Expand Down

0 comments on commit 1bad8b5

Please sign in to comment.