From e1376b1c29a6a7bcab0679acf89d866ff7d4d57a Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Sat, 19 Aug 2023 16:19:28 +0200 Subject: [PATCH] Fix expand-all-cws button, resolves #43 --- packages/client/src/components/MkSubNoteContent.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/MkSubNoteContent.vue b/packages/client/src/components/MkSubNoteContent.vue index 8d4e990a6..68b5d1c72 100644 --- a/packages/client/src/components/MkSubNoteContent.vue +++ b/packages/client/src/components/MkSubNoteContent.vue @@ -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; }, })