Skip to content

Commit 7178611

Browse files
committed
Ensure entire LeftPanel is faded when settings open
so as to prevent interaction with TagPanel. Fixes element-hq#6184
1 parent 1e977b5 commit 7178611

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/structures/LeftPanel.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,11 @@ var LeftPanel = React.createClass({
186186
topBox = <SearchBox collapsed={ this.props.collapsed } onSearch={ this.onSearch } />;
187187
}
188188

189-
let classes = classNames(
190-
"mx_LeftPanel", "mx_fadable",
189+
const classes = classNames(
190+
"mx_LeftPanel",
191191
{
192192
"collapsed": this.props.collapsed,
193-
"mx_fadable_faded": this.props.disabled,
194-
}
193+
},
195194
);
196195

197196
const tagPanelEnabled =
@@ -200,10 +199,11 @@ var LeftPanel = React.createClass({
200199
const tagPanel = tagPanelEnabled ? <TagPanel /> : <div />;
201200

202201
const containerClasses = classNames(
203-
"mx_LeftPanel_container",
202+
"mx_LeftPanel_container", "mx_fadable",
204203
{
205204
"mx_LeftPanel_container_collapsed": this.props.collapsed,
206205
"mx_LeftPanel_container_hasTagPanel": tagPanelEnabled,
206+
"mx_fadable_faded": this.props.disabled,
207207
},
208208
);
209209

0 commit comments

Comments
 (0)