element [bug report] calculation bug caused by no reset of cascade select panel activepath

soat7uwm  于 3个月前  发布在  其他
关注(0)|答案(2)|浏览(62)

Element UI version

2.13.2

OS/Browsers version

mac os 10.14

Vue version

2.6.10

https://codepen.io/chenzhq/pen/WNQPxmQ?editors=1111

Steps to reproduce

  1. 点击cascade select组件,选择任一节点,只需要修改activePath即可;
  2. 关闭select panel;
  3. 点击【修改】按钮,修改options;

What is Expected?

重置value,重置activePath

What is actually happening?

console里会报错 初步定位是由于acitvePath未重置,导致计算node时出错。

fnvucqvd

fnvucqvd1#

Translation of this issue:

Element UI version

2.13.2

OS/Browsers version

mac os 10.14

Vue version

2.6.10

https://codepen.io/chenzhq/pen/WNQPxmQ?editors=1111

Steps to reproduce

  1. Click the cascade select component, select any node, and only modify the active path;
  2. Close the select panel;
  3. Click [modify] to modify options;

What is Expected?

Reset value, reset activepath

What is actually happening?

An error will be reported in the console. The initial location is because the acitvepath is not reset, resulting in an error in node calculation.

tvokkenx

tvokkenx2#

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.

相关问题