You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Fix left panel widgets not remembering collapsed state
Fixes https://github.com/vector-im/element-web/issues/17803 The `setExpanded` function takes a boolean, not a function.
This commit is contained in:
@@ -115,7 +115,7 @@ const LeftPanelWidget: React.FC = () => {
|
||||
aria-expanded={expanded}
|
||||
aria-level={1}
|
||||
onClick={() => {
|
||||
setExpanded(e => !e);
|
||||
setExpanded(!expanded);
|
||||
}}
|
||||
>
|
||||
<span className={classNames({
|
||||
|
||||
Reference in New Issue
Block a user