Skip to content

Pagination component throwing ExpressionChangedAfterItHasBeenCheckedError and not setting correct page #6703

@rchowdev

Description

@rchowdev

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 18.1.3

Angular: 18.1

Bootstrap: Bootstrap 5.3

Build system: Angular CLI, System.js, webpack, starter seed:

https://stackblitz.com/edit/stackblitz-starters-3g2oxv?file=package.json,src%2Fapp%2Fpagination%2Fpagination.component.ts

Expected behavior

Steps to reproduce:

  1. Start on page 10 and limit 10.
  2. Set limit to 50.

I expect the page to be set to 1 instead of 3.

Is there is a way to remove the error without using ChangeDetector?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions