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
cannot set Input value when use it with AutoComplete #16589
Comments
Hello @Zhaojing0987. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by 你好 @Zhaojing0987, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。 |
Do not set |
@zombieJ the value property of AutoComplete is to set selected option, if I trigger onChange to change autoComplete value, it will auto select a option, but I just want to change the input value. |
AutoComplete is set to input value, not force require match the option: https://ant.design/components/auto-complete-cn/#components-auto-complete-demo-non-case-sensitive |
@zombieJ it will select option if you set value |
@zombieJ updated reproduction link |
Press ESC to close popup. Option in AutoComplete is optional. It do trigger onChange with user input. |
Reproduction link
https://codesandbox.io/embed/135jzzqvz3
Steps to reproduce
use value and onChange to set Input(inside AutoComplete) value
What is expected?
can set Input value
What is actually happening?
cannot set Input value
want to clear Input value in AutoComplete, use the value property of AutoComplete will cause a problem, which is auto select option when input
The text was updated successfully, but these errors were encountered: