Skip to content

Commit

Permalink
add type attribute to tag remove button
Browse files Browse the repository at this point in the history
PR: #551
  • Loading branch information
vcanales committed Jan 26, 2017
1 parent 5ffdd17 commit fdf315f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/tag/tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class Tag extends React.Component<ITagProps, {}> {
return (
<span {...removeNonHTMLProps(this.props)} className={tagClasses}>
{this.props.children}
{isFunction(onRemove) ? <button className={Classes.TAG_REMOVE} onClick={onRemove} /> : null}
{isFunction(onRemove) ? <button type="button" className={Classes.TAG_REMOVE} onClick={onRemove} /> : null}
</span>
);
}
Expand Down

0 comments on commit fdf315f

Please sign in to comment.