ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

AutoComplete 输入一个字符光标会自动消失/丢失focus

Open jasonren0403 opened this issue 8 months ago • 4 comments
trafficstars

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

Version

4.2.6

Environment

vue: 3.5.13

Reproduction link

https://jasonren0403.github.io/antdv-autocomplete-placeholder-toolong/

Steps to reproduce

直达Pages

还是在之前那个autocomplete复现仓库中,在name2中输入opt,会正常弹出选项,输入3也会正常显示选项,且可以继续输入;在name1和collapse组件中的auto-complete的输入无论是111(选项有此字符串)还是333(选项无此字符串)都无法正常完成输入

What is expected?

即使没有任何匹配的选项,光标也不至于跳出auto-complete组件

What is actually happening?

输入完一个字符,该组件就失焦了,导致无法正常完成输入

jasonren0403 avatar Mar 20 '25 02:03 jasonren0403