Don't bind Pill function, React does this for us

This commit is contained in:
Luke Barnard 2017-08-18 17:15:27 +01:00
parent 273abd9327
commit b678c2cf0f

View file

@ -171,7 +171,7 @@ const Pill = React.createClass({
}
pillClass = 'mx_UserPill';
href = null;
onClick = this.onUserPillClicked.bind(this);
onClick = this.onUserPillClicked;
}
}
break;