[bug report] cascade selector checkstrict: true, after searching and reselecting the parent node, the cascade submenu does not change to the submenu of the current node
Open
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.15.1
### OS/Browsers version
Google Chrome 版本 89.0.4389.128(正式版本) (64 位)
### Vue version
2.6.12
### Reproduction Link
https://codepen.io/achoujiademiao/pen/OJWZKPe
### Steps to reproduce
1. 点击组件,选择 指南 / 设计原则 / 一致
2. 点击清除
3. 点击组件,搜索 组件, 选择组件
4. 观察下拉子菜单中内容为 指南 子菜单
### What is Expected?
搜索选择后,子菜单内容显示为当前父节点的子节点列表
### What is actually happening?
搜索选择后,子菜单显示为上次选择节点的子节点列表
methods:syncActivePath() 方法中,var _nodes = (checkedNode.pathNodes || []).slice(0, -1);
深复制未生效,_nodes 一直为 [] 导致子菜单未替换
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.