ElemeFE / ElemeFE/element

[Bug Report] default-expanded-keys doesn't work with lazy

Open
#18,824 4 comments 3 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.13.0

### OS/Browsers version
firefox 60

### Vue version
2.6.11

### Reproduction Link
https://jsfiddle.net/mkr0x6cw/1/

### Steps to reproduce
Use the tree with Lazy .
I have part of the tree in the data prop and the remainder of the data that forms the tree that should be lazy loaded when specific nodes are selected.
I use the default-expanded-key with the id of a node which is in the pre-loaded part of the tree (aka in data prop).

### What is Expected?
When the tree is displayed, I want the tree to be expanded to the pre-selected node.

### What is actually happening?
With the Lazy option, the tree doesn't expand.
If I remove the Lazy option from the tree, then the tree expands as expected.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.