Fix expand-all-cws button, resolves #43

This commit is contained in:
Laura Hausmann 2023-08-19 16:19:28 +02:00
parent 44b724e311
commit e1376b1c29
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -244,8 +244,12 @@ let _showContent = $ref(null);
let showContent = $computed({
set(val) { _showContent = val },
get() {
if (_showContent != null) return _showContent;
return props.forceExpandCw || false;
if (props.forceExpandCw != null) {
_showContent = props.forceExpandCw;
props.forceExpandCw = null;
}
return _showContent || false;
},
})