Skip to content

Cannot read property 'children' of undefined #193

@bsekachev

Description

@bsekachev
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions