1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

add null-guard

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2018-06-16 08:44:57 +01:00
parent 8971211639
commit 1afdb0e3c0

View File

@@ -95,7 +95,9 @@ var LeftPanel = React.createClass({
break; break;
case KeyCode.ENTER: case KeyCode.ENTER:
this._onMoveFocus(false); this._onMoveFocus(false);
this.focusedElement.click(); if (this.focusedElement) {
this.focusedElement.click();
}
handled = true; handled = true;
break; break;
} }