twbs-pagination icon indicating copy to clipboard operation
twbs-pagination copied to clipboard

Cannot read property 'children' of undefined

Open bsekachev opened this issue 5 years ago • 0 comments

Uncaught TypeError: Cannot read property 'children' of undefined
    at TwbsPagination.render (jquery.twbsPagination.js:208)
    at TwbsPagination.show (jquery.twbsPagination.js:109)
    at jQuery.fn.init.$.fn.twbsPagination (jquery.twbsPagination.js:322)

Fault in the row:

this.$listContainer.children().remove();

Scenario:

  1. Create pagination with enabled option hideOnlyOnePage
  2. It must have a single page.
  3. Call paginator.twbsPagination('show', 1)
  4. Get the exception.

bsekachev avatar May 27 '19 09:05 bsekachev