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

DatePicker doesn't support tabIndex #48059

Open
wang-yikai opened this issue Mar 24, 2024 · 5 comments · May be fixed by react-component/picker#779
Open

DatePicker doesn't support tabIndex #48059

wang-yikai opened this issue Mar 24, 2024 · 5 comments · May be fixed by react-component/picker#779
Assignees
Labels

Comments

@wang-yikai
Copy link

wang-yikai commented Mar 24, 2024

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Pass tabIndex={-1} and see that DatePicker can still be focused.

What is expected?

DatePicker should get focused in the right order and DatePicker with -1 tabIndex shouldn't get focused.

What is actually happening?

Press tab on the keyboard and see that DatePicker gets focused in the wrong order and DatePicker with -1 tabIndex still gets focused.

Environment Info
antd 5.15.2
React 18
System MacOS
Browser Chrome

This was resolved in #23918 but not for AntD v5.

@afc163
Copy link
Member

afc163 commented Mar 25, 2024

图片

@afc163 afc163 added the 🤔 Need Reproduce We cannot reproduce your problem label Mar 25, 2024
Copy link
Contributor

Hello @wang-yikai. Please provide a online reproduction by forking codesandbox of antd@5.x or antd@4.x, or provide a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @wang-yikai,我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击这里创建一个 antd@5.xantd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

什么是最小化重现,为什么这是必需的?

@wang-yikai
Copy link
Author

@afc163 I made the sandbox public, my apologies!

@afc163 afc163 removed 🤔 Need Reproduce We cannot reproduce your problem unconfirmed labels Mar 25, 2024
@wang-yikai wang-yikai linked a pull request Mar 25, 2024 that will close this issue
@wang-yikai
Copy link
Author

I've created react-component/picker#779 to fix this issue.

@wang-yikai
Copy link
Author

@zombieJ Any progress with merging react-component/picker#779?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants