Skip to content

Commit

Permalink
Avoid changing public interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Feb 17, 2020
1 parent feed16a commit 80a99cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/next/client/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ class Link extends Component<LinkProps> {
}
})

linkClicked = (e: React.MouseEvent<HTMLAnchorElement>) => {
const { nodeName, target } = e.currentTarget
linkClicked = (e: React.MouseEvent) => {
const { nodeName, target } = e.currentTarget as HTMLAnchorElement
if (
nodeName === 'A' &&
((target && target !== '_self') ||
Expand Down Expand Up @@ -240,7 +240,7 @@ class Link extends Component<LinkProps> {
}
this.prefetch()
},
onClick: (e: React.MouseEvent<HTMLAnchorElement>) => {
onClick: (e: React.MouseEvent) => {
if (child.props && typeof child.props.onClick === 'function') {
child.props.onClick(e)
}
Expand Down

0 comments on commit 80a99cf

Please sign in to comment.