event handlers need to be bound with es6 react classes

This commit is contained in:
Bruno Windels 2018-10-23 15:33:24 +02:00
parent 8b38af856a
commit 97789a8858

View file

@ -19,6 +19,13 @@ import dis from '../../dispatcher';
import { _t } from '../../languageHandler'; import { _t } from '../../languageHandler';
export class TopLeftMenu extends React.Component { export class TopLeftMenu extends React.Component {
constructor() {
super();
this.openSettings = this.openSettings.bind(this);
this.signOut = this.signOut.bind(this);
}
render() { render() {
return <div className="mx_TopLeftMenu"> return <div className="mx_TopLeftMenu">
<ul className="mx_TopLeftMenu_section"> <ul className="mx_TopLeftMenu_section">