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

Drawer 设置 mask false,在 Drawer 内打开 Modal,打开的 Drawer 位置会因为滚动消失而闪动 #49462

Open
crazyair opened this issue Jun 18, 2024 · 2 comments · May be fixed by react-component/drawer#472

Comments

@crazyair
Copy link
Member

crazyair commented Jun 18, 2024

Reproduction link

https://stackblitz.com/edit/react-etuypq?file=demo.tsx

Steps to reproduce

  1. 点击 Open Drawer
  2. 点击 Open Modal

What is expected?

Drawer 不闪动

What is actually happening?

Drawer 位置变了

Environment Info
antd 5.18.2
React latest
System mac
Browser chrome

这个看要不要内置优化掉?

@andybuibui
Copy link

参考:#38506 特意设定的
你可以监听open 控制document.body.style来添加或者移除样式

@crazyair
Copy link
Member Author

参考:#38506 特意设定的 你可以监听open 控制document.body.style来添加或者移除样式

这个没问题,我是觉得 Drawer 可以优化,动态改 right 值

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

Successfully merging a pull request may close this issue.

2 participants