Closed aligajani closed 6 years ago
in loadmore when new data append at the end sticky bar position got disturb. even got this error "Cannot read property 'getBoundingClientRect' of null"
@yasir-rafiq Have you tried using reinit
method after you added your dynamic content?
can you explain how I can use this method?
@yasir-rafiq Are you using it via jQuery or vanilla js?
js
var Sticky = new hcSticky('#element');
// some code that appends the data to page
// after that you refresh the sticky
Sticky.refresh();
@aligajani I'm not sure I understand the question. Can you explain in more detail please?