Skip to content

Commit

Permalink
Removed stray innerRef prop on a <Link> (#3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz authored May 31, 2020
1 parent a2f2430 commit 98bd9d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/two-spies-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@arch-ui/button': patch
---

Removed stray innerRef prop on a <Link>.
2 changes: 1 addition & 1 deletion packages/arch/packages/button/src/primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function ButtonElementComponent(props, ref) {
const variant = makeVariant(props);

if (rest.to) {
return <Link innerRef={ref} css={variant} {...rest} />;
return <Link ref={ref} css={variant} {...rest} />;
}

if (rest.href) {
Expand Down

0 comments on commit 98bd9d8

Please sign in to comment.