fix: set open to true on commentnodei
This commit is contained in:
1 parent
c8189a0ac9
commit
60004f03a7
2 files changed
+6
-2
No files matched your search
@@ -129,7 +129,9 @@
|
||||
src={open ? Minus : Plus}
|
||||
size="16"
|
||||
micro
|
||||
class="transition-transform duration-500 {open ? '' : 'rotate-90'}"
|
||||
class="transition-transform duration-500 {open
|
||||
? ''
|
||||
: 'rotate-90'} text-primary-900 dark:text-primary-100"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -41,7 +41,9 @@ export function buildCommentsTree(
|
||||
comment_view,
|
||||
children: [],
|
||||
depth: depth,
|
||||
ui: {},
|
||||
ui: {
|
||||
open: true,
|
||||
},
|
||||
}
|
||||
min_depth = Math.min(min_depth, depth)
|
||||
if (filter(comment_view)) {
|
||||
|
||||
Reference in new issue
Block a user