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

Selecting suggestion from <Autocomplete/> in a form inside a <Modal/> will close the modal #27115

Closed
1 task
besartmarku opened this issue Oct 12, 2020 · 1 comment

Comments

@besartmarku
Copy link

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

I have a form inside a Modal. The form has also a field in it. Changing other fields work normally and they won't close the modal, but selecting a suggestion from will close modal immediately.

What is expected?

The Autocomplete field to "register" the value normally and not close the modal

What is actually happening?

Selecting the suggestion closes the Modal

Environment Info
antd 4.7.0
React react
System Windows 10
Browser Google Chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants