Reproduction link
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.
5条答案
按热度按时间2ul0zpep1#
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.x 或 antd@4.x 的 codesandbox,或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。
什么是最小化重现,为什么这是必需的?
zkure5ic3#
@afc163 I made the sandbox public, my apologies!
798qvoo84#
I've created react-component/picker#779 to fix this issue.
aurhwmvo5#
@zombieJ Any progress with merging react-component/picker#779 ?