[Sticky] - Sticky applies bound bottom
Steps to Reproduce
- Open page with an element with class
ui sticky - Scroll down
-
bound bottomclasses are applied instead offixed top
Expected
Sticky element should have fixed top always
Result
Sticky element has bound bottom class applied
Im seeing this too
Also experiencing this. Oddly, on production, it goes away when I open developer console. In local, that did not happen and I was also able to see the "ui sticky bound bottom" classes were in fact causing this annoying issue I'm debugging where the elements are jumping from top of the context selector to the bottom of it..
Edit: Could have been how I was refreshing cached sticky items after deleting/repopulating the dom with new elements. I had it set to only refresh some sticky elements within a certain segment..
$('#the_segment_id .ui.sticky:visible').sticky('refresh');
But using this instead seems to resolve my particular problem:
$('.ui.sticky:visible').sticky('refresh');
I got this issue and finally fixed by setting the correct context property in the <Sticky>.