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

pull/21833/head
Luke Barnard 2017-08-18 17:15:27 +01:00
parent 273abd9327
commit b678c2cf0f
1 changed files with 1 additions and 1 deletions

View File

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