Skip to content

Commit

Permalink
fix(button): check for disabled state before rendering as anchor (#4480)
Browse files Browse the repository at this point in the history
  • Loading branch information
jendowns authored and asudoh committed Oct 29, 2019
1 parent 8b04235 commit 341e3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const Button = React.forwardRef(function Button(
...otherProps,
...anchorProps,
};
} else if (href) {
} else if (href && !disabled) {
component = 'a';
otherProps = anchorProps;
}
Expand Down

0 comments on commit 341e3e3

Please sign in to comment.