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

select中tags模式,如果填写完内容,直接点击提交按钮,会获取不到最新值

Open havenothingtosay opened this issue 1 year ago • 1 comments
trafficstars

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

Version

2.2.8

Environment

vue3.2.45 chrome119.0.6045.199

Reproduction link

Edit on CodeSandbox

Steps to reproduce

在select框中输入值,直接点击submit按钮,此时value值没有获取刚刚输入的最新值

What is expected?

希望能直接获取最新值

What is actually happening?

未获取最新值

havenothingtosay avatar Dec 19 '23 08:12 havenothingtosay

image 看了下组件的源码, mode为tags时blur触发后有个100毫秒的定时器, 在这之后才会更新值, 目前是手动添加一个大于100毫秒的定时器之后再进行操作, 不知道有没有其他更好的办法

PeanutAdventurer avatar Jan 17 '24 08:01 PeanutAdventurer

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Mar 18 '24 02:03 github-actions[bot]