Element: [Bug Report] cascade selection under dynamic loading level, the first level to search through filterable

Created on 13 Nov 2017  ·  4Comments  ·  Source: ElemeFE/element

Element UI version

2.0.4

OS/Browsers version

chrome 56

Vue version

2.5.3

Reproduction Link

https://jsfiddle.net/jzfewhqc/

Steps to reproduce

What is Expected?

第一级可以搜索

What is actually happening?

搜索不到结果

Most helpful comment

这个冲突如何解决?用了异步加载就没办法选择父目录了。有木有子项单击事件?

All 4 comments

Translation of this issue:

Element UI version

2.0.4

OS/Browsers version

Chrome 56

Vue version

2.5.3

Reproduction Link

https://jsfiddle.net/jzfewhqc/

Steps to reproduce

What is Expected?

The first level can search

What is actually happening?

No search results

初始化时第一级节点的子节点为 [],在 change-on-selectfalse 时(默认情况),这一级是没有可以被选中的项的,因此不会被搜索出来。

change-on-select 与active-item-change是冲突的,那就没办法喽?

这个冲突如何解决?用了异步加载就没办法选择父目录了。有木有子项单击事件?

Was this page helpful?
0 / 5 - 0 ratings