IDuxFE / idux

🚀 A UI Component Library for Vue3.x
https://idux.site
MIT License
552 stars 141 forks source link

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

Closed lyyzhh closed 1 year ago

lyyzhh commented 1 year ago

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 commented 1 year ago

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

lyyzhh commented 1 year ago

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

danranVm commented 1 year ago

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

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

danranVm commented 1 year ago

GIF