Skip to content

fix: when using scrollTo the outer layer also scrolls at the same time#1064

Open
Fatpandac wants to merge 3 commits intoreact-component:masterfrom
Fatpandac:fix/replace_scrollIntoView_by_scrollTo
Open

fix: when using scrollTo the outer layer also scrolls at the same time#1064
Fatpandac wants to merge 3 commits intoreact-component:masterfrom
Fatpandac:fix/replace_scrollIntoView_by_scrollTo

Conversation

@Fatpandac
Copy link
Copy Markdown

使用 scrollTo 替换 scrollIntoView,避免出现嵌套滚动 div 的时候,使内部 div 滚动同时导致外部的 div 也一起滚动。

ant-design/ant-design#46467

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 27, 2023 1:41pm

@afc163
Copy link
Copy Markdown
Member

afc163 commented Dec 27, 2023

ci failed

@Fatpandac
Copy link
Copy Markdown
Author

These two tests failed because I deprecated the scrollIntoView().
Can I remove these tests?

@afc163
Copy link
Copy Markdown
Member

afc163 commented Dec 27, 2023

Yes if these test cases is useless.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 27, 2023

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.51%. Comparing base (b72776c) to head (c93290a).
⚠️ Report is 231 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1064   +/-   ##
=======================================
  Coverage   99.51%   99.51%           
=======================================
  Files          47       47           
  Lines        4518     4527    +9     
  Branches      571      572    +1     
=======================================
+ Hits         4496     4505    +9     
  Misses         22       22           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@afc163
Copy link
Copy Markdown
Member

afc163 commented Dec 27, 2023

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants