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({ let showContent = $computed({
set(val) { _showContent = val }, set(val) { _showContent = val },
get() { get() {
if (_showContent != null) return _showContent; if (props.forceExpandCw != null) {
return props.forceExpandCw || false; _showContent = props.forceExpandCw;
props.forceExpandCw = null;
}
return _showContent || false;
}, },
}) })