ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

[Bug Report] Cascader multi-choice mode echo tag order and incoming values are inconsistent #19771

Open ctc1995 opened 4 years ago

ctc1995 commented 4 years ago

Element UI version

2.13.2

OS/Browsers version

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.70 Safari/537.36

Vue version

2.6.10

Reproduction Link

https://codepen.io/tianzhihen121/pen/MWwXwOK

Steps to reproduce

Delete first tag,you will see the first tag is still exist,but the third tag is deleted.Wow!!!

I think the reason is related to cascader component defualt sortings rules, ex:[1,2,3][1,2,4][1,2,5] order is right,but [1,2,5][1,2,4][1,2,3],when you delete[1,2,5],it will be wrong

Please check out,thank you!

What is Expected?

Delete first tag,first tag will be clear, And third tag still exist.

What is actually happening?

Delete first tag,first tag is still exist,But third tag is deleted

stale[bot] commented 3 years ago

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.