Element UI version
2.13.2
OS/Browsers version
MacOS10.13.6/chrome 85.0.4183.83
Vue version
2.6.11
Reproduction Link
https://codepen.io/rehack/pen/poyLvdJ
Steps to reproduce
1.chrome中打开重现链接
2.点击页面编辑按钮
3.点击编辑按钮后会弹出级联选择器
4.可以看到级联选择器设置了默认值“管理部/系统管理部”
5.从级联选择器选择一个非默认值(“管理部/系统管理部”)的项
6.可以看到非默认值的项成功被选中
7.此时再次去选择“管理部/系统管理部”这一项,此时bug出现!
What is Expected?
默认值项可以再次被选择
What is actually happening?
默认值项无法再次被选择
4条答案
按热度按时间rt4zxlrg1#
plase set your data option like this, to fixed
0lvr5msh2#
@shimangdian 我发现问题了,在我本地还对editStaffData先进行了直接赋值,再对editStaffData.dept进行赋值,Vue这样赋值不能直接检测到数据的变化。
https://codepen.io/rehack/pen/poyLvdJ
kadbb4593#
@luvtian 👍
dm7nw8vv4#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.