Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The root node of [bug report] tree cannot use insertBefore #21085

Closed
happyfeet1996 opened this issue Jun 18, 2021 · 1 comment · Fixed by #21194
Closed

The root node of [bug report] tree cannot use insertBefore #21085

happyfeet1996 opened this issue Jun 18, 2021 · 1 comment · Fixed by #21194

Comments

@happyfeet1996
Copy link

Element UI version

2.15.2

OS/Browsers version

chrome

Vue version

2.6.14

Reproduction Link

https://codepen.io/ziyoung/pen/sdfasd

Steps to reproduce

使用tree的懒加载,第一次加载了十一个子节点,最后节点是more,想使用点击more加载更多节点,使用了inserbefore方法,根结点上的more无法使用,会报错,但是第三级的节点正常

What is Expected?

修复bug

What is actually happening?

修复

@element-bot element-bot changed the title [Bug Report] tree的根结点无法使用insertbefore The root node of [bug report] tree cannot use insertBefore Jun 18, 2021
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.15.2

OS/Browsers version

chrome

Vue version

2.6.14

Reproduction Link

https://codepen.io/ziyoung/pen/sdfasd

Steps to reproduce

Lazy loading of tree is used. Eleven child nodes are loaded for the first time, and the last node is more. If you want to use more to load more nodes, the inserbefore method is used. The more on the root node cannot be used, and an error will be reported, but the third level node is normal

What is Expected?

Fix bugs

What is actually happening?

repair

@cs1707 cs1707 mentioned this issue Jul 30, 2021
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants