[Fixed]-Django endless pagination on scroll in case of overflowed container

1👍

$.endlessPaginate binds to the entire page. If you want to focus on one element, you need to target that element specifically:

$("#test").endlessPaginate({
    paginateOnScroll: true,
    paginateOnScrollMargin: 20
});

P.S. the standard for ids (and classes) is hyphens not underscores: #dialog-list-container

👤Jessie

Leave a comment