-
Notifications
You must be signed in to change notification settings - Fork 518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On refresh, does not activate if not Div #246
Comments
+1, Recreate
What I expectedThat after a reload halfway the page, the item would stock in the parent as before Bonus checkOn the same page we have another sticky element, in a parent TriedSetting a class on the (By the way, Thank you for this script, we use it a lot and it's really handy and easy to set up!) |
I haven't had this issue. I think it's because I'm using https://necolas.github.io/normalize.css/7.0.0/normalize.css which turns article, nav, section, etc., into blocks. |
I've noticed a strange bug where the sticky element doesn't activate if class not on a div (an
<article>
in my case). This only seems to affect it if the document is reloaded half way down. If the page is loaded at the very top then it is fine. Only on reload. Changed<article>
to a<div>
and it works fine on reload.The text was updated successfully, but these errors were encountered: