mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 14:31:09 +02:00
event handlers need to be bound with es6 react classes
This commit is contained in:
parent
8b38af856a
commit
97789a8858
@ -19,6 +19,13 @@ import dis from '../../dispatcher';
|
||||
import { _t } from '../../languageHandler';
|
||||
|
||||
export class TopLeftMenu extends React.Component {
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
this.openSettings = this.openSettings.bind(this);
|
||||
this.signOut = this.signOut.bind(this);
|
||||
}
|
||||
|
||||
render() {
|
||||
return <div className="mx_TopLeftMenu">
|
||||
<ul className="mx_TopLeftMenu_section">
|
||||
|
Loading…
x
Reference in New Issue
Block a user