Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

🐛[BUG] In mobile, can not scroll vertically on a long page after clicking a menu item. #542

Open
gcoban opened this issue Jul 8, 2020 · 3 comments

Comments

@gcoban
Copy link

gcoban commented Jul 8, 2020

🐛 bug 描述 [详细地描述 bug,让大家都能理解]

In mobile, can not scroll vertically on a long page after clicking a menu item.

📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]

  1. Load single page application with pro layout
  2. Right click, inspect page, toggle to mobile
  3. Click the menu icon on the top left
  4. Chose a menu item with long content
  5. It is not possible to scroll on that page
  6. If you reload the application on the same page, there is no problem. Issue exist only if you navigate through menu in mobile

🏞 期望结果 [描述你原本期望看到的结果]

Expected to scroll in long pages navigated through menu in mobile

💻 复现代码 [提供可复现的代码,仓库,或线上示例]

We can examine the issue on Ant Design Pro Preview

  1. Click the link provided above
  2. Right click, inspect page, toggle to mobile
  3. Click the menu icon on the top left
  4. Click Workplace under Dashboard
  5. You cannot scroll on the page
  6. If you reload the application on the same page, there is no problem.

© 版本信息

  • Ant Design Pro v4
  • umi v3
  • Chrome
  • mac OS

🚑 其他信息 [如截图等其他信息可以贴在这里]

image

@gcoban gcoban changed the title 🐛[BUG] 🐛[BUG] In mobile, can not scroll vertically on a long page after clicking on a menu item. Jul 8, 2020
@gcoban gcoban changed the title 🐛[BUG] In mobile, can not scroll vertically on a long page after clicking on a menu item. 🐛[BUG] In mobile, can not scroll vertically on a long page after clicking a menu item. Jul 8, 2020
@gcoban
Copy link
Author

gcoban commented Jul 8, 2020

I think the cause is "overflow: hidden;" on body

image

@chenshuai2144
Copy link
Collaborator

Where did this style come from, antd modal?

@gcoban
Copy link
Author

gcoban commented Jul 17, 2020

Anyone have idea?

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

No branches or pull requests

2 participants