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.pull/21833/head
parent
ee95e36a7c
commit
4415a7037c
|
@ -115,7 +115,7 @@ const LeftPanelWidget: React.FC = () => {
|
|||
aria-expanded={expanded}
|
||||
aria-level={1}
|
||||
onClick={() => {
|
||||
setExpanded(e => !e);
|
||||
setExpanded(!expanded);
|
||||
}}
|
||||
>
|
||||
<span className={classNames({
|
||||
|
|
Loading…
Reference in New Issue