Merge pull request #6687 from matrix-org/travis/left-panel-widget-expand

Fix left panel widgets not remembering collapsed state
This commit is contained in:
Travis Ralston 2021-08-26 10:46:51 -06:00 committed by GitHub
commit a1a7de0f37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,7 @@ const LeftPanelWidget: React.FC = () => {
aria-expanded={expanded}
aria-level={1}
onClick={() => {
setExpanded(e => !e);
setExpanded(!expanded);
}}
>
<span className={classNames({