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] [Bug Report] el-cascader 多选筛选中文输入法输入拼音回退导致之前的项被删除 #22962

Open xwwww opened 2 months ago

xwwww commented 2 months ago

Element UI version

2.15.14

OS/Browsers version

ALL

Vue version

2.7.16

Reproduction Link

https://codepen.io/xwwww/pen/WNqPPBa

Steps to reproduce

多选选中几项,输入拼音然后删除,会把前面的项删掉,问题应该出现 handleDelete 方法里

What is Expected?

删除拼音,对前面已选中无影响

What is actually happening?

删除拼音,会把前面的项删掉

xwwww commented 2 months ago

试了下,element-plus 也有同样的问题

xwwww commented 2 months ago

看了下代码,没有判断是否是输入中文,提了 pr: https://github.com/ElemeFE/element/pull/22963/files