Skip to content

Commit dfdddff

Browse files
Johannes Steinryanflorence
authored andcommitted
Bind handleClick to component instance
1 parent e022b82 commit dfdddff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/components/Link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class Link extends React.Component {
8181
var props = assign({}, this.props, {
8282
href: this.getHref(),
8383
className: this.getClassName(),
84-
onClick: this.handleClick
84+
onClick: this.handleClick.bind(this)
8585
});
8686

8787
if (props.activeStyle && this.getActiveState())

0 commit comments

Comments
 (0)