ant-design DatePicker doesn't support tabIndex

cidc1ykv  于 22天前  发布在  其他
关注(0)|答案(5)|浏览(17)

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.

c90pui9n

c90pui9n2#

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 将会被自动关闭。
什么是最小化重现,为什么这是必需的?

zkure5ic

zkure5ic3#

@afc163 I made the sandbox public, my apologies!

相关问题