Skip to content

Commit 8271679

Browse files
author
David Brainer-Banker
committed
Update the PropType of ContextBar links
1 parent 50201a8 commit 8271679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/context-bar/link.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ContextBarLink = (props) => {
4343
function handleClick (event) {
4444
if (isFunction(onClick)) {
4545
EventUtil.trap(event);
46-
onClick(event);
46+
onClick(event, { href: this.props.href });
4747
}
4848
}
4949

@@ -79,7 +79,7 @@ ContextBarLink.propTypes = {
7979
/**
8080
* Function triggered when link is clicked. If set, `href` will be ignored.
8181
*/
82-
onClick: PropTypes.string
82+
onClick: PropTypes.func
8383
};
8484

8585
module.exports = ContextBarLink;

0 commit comments

Comments
 (0)