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

autoFocus prop of AutoComplete rendered inside a Modal doesn't work #41866

Closed
sleepyArpan opened this issue Apr 18, 2023 · 1 comment
Closed

Comments

@sleepyArpan
Copy link

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Render the AutoComplete component inside a Modal with autoFocus as true

What is expected?

AutoComplete to have focus when the modal is opened.

What is actually happening?

AutoComplete does not have focus when the modal is opened.

Environment Info
antd 5.4.2
React 18
System Apple M1 Macos Ventura 13.3
Browser Firefox - 111.0.1 (64-bit)
@afc163
Copy link
Member

afc163 commented Apr 18, 2023

Duplicate of #41239

@afc163 afc163 marked this as a duplicate of #41239 Apr 18, 2023
@afc163 afc163 closed this as completed Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants