Skip to content

Commit

Permalink
feat(ktreelist): update nextTick [KHCP-14716]
Browse files Browse the repository at this point in the history
  • Loading branch information
DariaYeremina committed Jan 22, 2025
1 parent a656076 commit 08810f4
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/KTreeList/KTreeDraggable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,10 @@ onMounted(async () => {
})
// Handles correct initial collapsed/expanded state
await nextTick(() => {
if (props.collapsible) {
triggerCollapse()
}
})
await nextTick()
if (props.collapsible) {
triggerCollapse()
}
})
defineExpose({ collapseAll, expandAll })
Expand Down

0 comments on commit 08810f4

Please sign in to comment.