Skip to content

Conversation

lich-yoo
Copy link
Contributor

image

经调查,出现在离开页面,组件卸载且页面出现滚动重置时,getOffset 参数会为 null

@vercel
Copy link

vercel bot commented Aug 26, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/table/BaQMe9VcByjdx8ZWd8u79fjxYJBs
✅ Preview: https://table-git-fork-lich-yoo-bugfix-sticky-react-component.vercel.app

@lich-yoo
Copy link
Contributor Author

@zombieJ

@codecov
Copy link

codecov bot commented Aug 26, 2021

Codecov Report

Merging #659 (676dd64) into master (730d4df) will decrease coverage by 0.11%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
- Coverage   99.65%   99.54%   -0.12%     
==========================================
  Files          28       28              
  Lines         876      878       +2     
  Branches      260      251       -9     
==========================================
+ Hits          873      874       +1     
- Misses          3        4       +1     
Impacted Files Coverage Δ
src/stickyScrollBar.tsx 97.22% <50.00%> (-1.35%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 730d4df...676dd64. Read the comment docs.

@afc163
Copy link
Member

afc163 commented Sep 1, 2021

图片

Could you add test case?

@afc163 afc163 merged commit ee8612e into react-component:master Jan 4, 2022
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