Skip to content

Commit

Permalink
fix(QTree): fix lazy-loading #8437 (#8441)
Browse files Browse the repository at this point in the history
Signed-off-by: Nurlan Suyundukov <[email protected]>
  • Loading branch information
Nurlan Suyundukov authored Feb 9, 2021
1 parent f738c63 commit 47323d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/tree/QTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default defineComponent({
parent,
isParent,
isLeaf,
localLazy,
lazy: localLazy,
disabled: node.disabled,
link: node.disabled !== true && (selectable === true || (expandable === true && (isParent === true || localLazy === true))),
children: [],
Expand Down Expand Up @@ -329,7 +329,7 @@ export default defineComponent({
lazy.value[ key ] = 'loaded'
node[ props.childrenKey ] = Array.isArray(children) === true ? children : []
nextTick(() => {
const localMeta = m.value[ key ]
const localMeta = meta.value[ key ]
if (localMeta && localMeta.isParent === true) {
localSetExpanded(key, true)
}
Expand Down

0 comments on commit 47323d7

Please sign in to comment.