Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug report] select component drop-down selection will change the option #21335

Closed
bchen1029 opened this issue Sep 21, 2021 · 2 comments · Fixed by #21336
Closed

[bug report] select component drop-down selection will change the option #21335

bchen1029 opened this issue Sep 21, 2021 · 2 comments · Fixed by #21336

Comments

@bchen1029
Copy link
Contributor

Element UI version

2.15.6

OS/Browsers version

Mac OS / Chrome 93.0.4577.63

Vue version

2.6.14

Reproduction Link

https://codepen.io/bchen1222/pen/vYZrBwW?editors=1100

Steps to reproduce

  1. 新增一個 el-select
  2. 將 filterable 設為 true
  3. 新增有中文 label 的選單,
    options: [
    {
    value: 'cake',
    label: '蛋糕'
    }
    ...
    ]

What is Expected?

可以正確 filter 符合輸入內容的選項

What is actually happening?

使用中文輸入法上下鍵選字時,選單的 active 選項也會跟著上下滑動,導致無法選到正確的中文字

@element-bot element-bot changed the title [Bug Report] Select 元件下拉選單選字時會改變選項 [bug report] select component drop-down selection will change the option Sep 21, 2021
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.15.6

OS/Browsers version

Mac OS / Chrome 93.0.4577.63

Vue version

2.6.14

Reproduction Link

https://codepen.io/bchen1222/pen/vYZrBwW?editors=1100

Steps to reproduce

  1. Add an EL select

  2. Set filterable to true

  3. Add a menu with Chinese label,

options: [
{

value: 'cake',
Label: 'cake'

}
...

]

What is Expected?

You can correctly filter the options that match the input

What is actually happening?

When using the up and down keys of the Chinese input method to select words, the active option of the menu will also slide up and down, resulting in failure to select the correct Chinese text

@bchen1029
Copy link
Contributor Author

@cs1707 Could someone help add want merge label to my PR or merge it, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants