ElemeFE / element

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

[Bug Report] el-select with multiple and filterable property, when I input a char by a composition input method, the 'Enter' action may select the first option. #19413

Open liushengxi123 opened 4 years ago

liushengxi123 commented 4 years ago

Element UI version

2.4.5

OS/Browsers version

MacOS Mojave / Chrome 81.0.4044.138

Vue version

2.5.2

Reproduction Link

https://codepen.io/liushengxi123/pen/yLYqbea

Steps to reproduce

  1. select the first option
  2. clear the selected item
  3. type 'a' character by a composition input method, such as Chinese Input Method
  4. press 'ENTER' key, then the first option is selected.

What is Expected?

The first option should not be selected while 'ENTER' the search string.

What is actually happening?

This issue happens on Chrome. Safari and Firefox works ok.

liushengxi123 commented 4 years ago

bug复现步骤

  1. 选择首项
  2. 清空选择框
  3. 用中文输入法输入‘a'字符,通过回车键让字符'a'上屏到输入框
  4. 结果发现首项被选中了
liushengxi123 commented 4 years ago

Chrome浏览器出现,safari/firefox都没有出现这个bug

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.