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

[comp:select]IxSelect在中文输入法输入时回车,onSearch事件会失效 #1474

Closed
1 task
lyyzhh opened this issue Feb 27, 2023 · 4 comments · Fixed by #1513
Closed
1 task

[comp:select]IxSelect在中文输入法输入时回车,onSearch事件会失效 #1474

lyyzhh opened this issue Feb 27, 2023 · 4 comments · Fixed by #1513
Assignees

Comments

@lyyzhh
Copy link

lyyzhh commented Feb 27, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Steps to reproduce

前提:系统输入法为中文输入法,IxSelect组件配置searchable,multiple,@search
步骤1:光标激活select组件,输入关键字
步骤2:按回车键,此时关键字已键入组件内,同时会选中第一个选项
步骤3,手动取消掉第一个选中项(或按退格键取消),此时@search事件失效

What is expected?

What is actually happening?

Environment Info

@idux/component@1.4.2

Any additional comments? (optional)

@danranVm
Copy link
Member

danranVm commented Feb 27, 2023

步骤2:按回车键,此时关键字已键入组件内,同时会选中第一个选项
当你选中了一个值后,此时搜索操作已经结束了,
取消掉选中项,onSearch 不触发是正常的行为。

@lyyzhh
Copy link
Author

lyyzhh commented Feb 27, 2023

是清除选中后,再次输入关键字,无法触发onSearch

@danranVm
Copy link
Member

是清除选中后,再次输入关键字,无法触发onSearch

我刚刚尝试了下,没有复现出来。

@danranVm
Copy link
Member

danranVm commented Feb 28, 2023

GIF

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.

2 participants