element [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.

o8x7eapl  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(86)

Element UI version

2.4.5

OS/Browsers version

MacOS Mojave / Chrome 81.0.4044.138

Vue version

2.5.2

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.

dphi5xsq

dphi5xsq1#

bug复现步骤

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

tpgth1q72#

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

uyhoqukh

uyhoqukh3#

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.

相关问题