Skip to content

Commit

Permalink
feat(link.jsx): added support of onAuxClick and onContextMenu to Link (
Browse files Browse the repository at this point in the history
…#61)

Co-authored-by: Jan Kučera <[email protected]>
  • Loading branch information
Greld and Jan Kučera authored Aug 18, 2020
1 parent 124bb7a commit 54b430c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/link/Link.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export default class Link extends React.PureComponent {
target,
mode,
className,
onAuxClick,
onClick,
onContextMenu,
children,
text,
style,
Expand All @@ -50,7 +52,9 @@ export default class Link extends React.PureComponent {
},
className
)}
onAuxClick={onAuxClick}
onClick={onClick}
onContextMenu={onContextMenu}
{...helper.getDataProps(this.props)}
{...helper.getAriaProps(this.props)}>
{children || text}
Expand Down

0 comments on commit 54b430c

Please sign in to comment.