Open afc163 opened 2 weeks ago
重现链接:https://ant.design/components/modal-cn 要和 https://github.com/ant-design/ant-design/issues/41239 这个问题一起看。
可以考虑用 react-focus-lock https://github.com/ant-design/ant-design/issues/47916 重构 Modal 和 Drawer 的 focus 逻辑。
之前在社区共建群讨论的时候我去看过一眼:
具体代码 https://github.com/react-component/dialog/blob/852caadf6d9e9af744c9246e8db3fcd70577f35e/src/Dialog/Content/Panel.tsx#L149
可能需要开一个口子,允许修改这个 tabindex 值。
重现链接:https://ant.design/components/modal-cn 要和 https://github.com/ant-design/ant-design/issues/41239 这个问题一起看。
可以考虑用 react-focus-lock https://github.com/ant-design/ant-design/issues/47916 重构 Modal 和 Drawer 的 focus 逻辑。