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

Modal 页面打开后会跳到下面去 #48699

Open
afc163 opened this issue Apr 29, 2024 · 1 comment
Open

Modal 页面打开后会跳到下面去 #48699

afc163 opened this issue Apr 29, 2024 · 1 comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. unconfirmed

Comments

@afc163
Copy link
Member

afc163 commented Apr 29, 2024

重现链接:https://ant.design/components/modal-cn
要和 #41239 这个问题一起看。

可以考虑用 react-focus-lock #47916 重构 Modal 和 Drawer 的 focus 逻辑。

@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Apr 29, 2024
@Wxh16144
Copy link
Member

之前在社区共建群讨论的时候我去看过一眼:

image

具体代码 https://github.com/react-component/dialog/blob/852caadf6d9e9af744c9246e8db3fcd70577f35e/src/Dialog/Content/Panel.tsx#L149

可能需要开一个口子,允许修改这个 tabindex 值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants