codecks-io / react-sticky-box

Sticky boxes for contents of all sizes
https://react-sticky-box.codecks.io/
ISC License
458 stars 44 forks source link

Sticky element position issue with dynamic pages #53

Closed anetecima closed 1 year ago

anetecima commented 4 years ago

Hi, I use StickyBox to display filters for filtering the my page content. there is a case when StickyBox gets stuck outside it's container. here is a sandbox for recreating this issue https://codesandbox.io/s/cool-darkness-hswks?file=/src/App.js

how to recreate: 1: scroll to footer 2: scroll up until both top and bottom edges of Stickybox are outside the screen.

  1. press "remove" button to change page content
  2. scroll up and down to see how it's stuck.
danielberndt commented 1 year ago

v2.0.0 was just released which should address these types of issues.