We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8271679 commit ec32198Copy full SHA for ec32198
components/context-bar/link.jsx
@@ -43,7 +43,9 @@ const ContextBarLink = (props) => {
43
function handleClick (event) {
44
if (isFunction(onClick)) {
45
EventUtil.trap(event);
46
- onClick(event, { href: this.props.href });
+
47
+ event.href = this.props.href;
48
+ onClick(event);
49
}
50
51
@@ -77,7 +79,7 @@ ContextBarLink.propTypes = {
77
79
*/
78
80
label: PropTypes.string,
81
/**
- * Function triggered when link is clicked. If set, `href` will be ignored.
82
+ * `function (event)` - fires when the link is clicked. If set, `href` will be ignored, but includes the `href` of the link in the event object.
83
84
onClick: PropTypes.func
85
};
0 commit comments