Inline styles are not removed when noStyles option is enabled
angkhaustova opened this issue · 2 comments
angkhaustova commented
Describe the bug
With noStyles option enabled, position in inline styles of the sticky element does not get cleared when returning to the initial position.
To Reproduce
Steps to reproduce the behavior:
- Go to https://codepen.io/angkhaustova/pen/xxEXzzN
- Resize the preview until it can be scrolled
- Scroll down
- Scroll back up
- The sticky element still has
position: fixed
Expected behavior
position: fixed
should be removed from styles attribute.
Desktop (please complete the following information):
- OS: iOS
- Browser: chrome
- Version: 87.0.4280.88
yowainwright commented
Hello @angkhaustova!
What would fixing this issue do for you? 🙂
It would be great to know what you're using Stickybits for and what problem this issue causes you.
I see in the Codepen the noStyles
and useFixed
options are used... which would/can definitely create some interesting situations.
yowainwright commented
Closing b/c of inactivity 😄