Topic: MDb Table Pagination Fires paginationChanged 3 times

modernwebdesign priority asked 1 year ago


Hello,

we are using the paginationChanged invent to use it for loading data with a custom logic. The Problem we have is, that this event is fired 3 times on pageload. Has anyone an idea why this happends?

Our html looks like this:

<mdb-table-pagination (paginationChange)='pageChanged($event)' [total]='usersRowCount' [entries]='25'></mdb-table-pagination>

Out TS like this:

pageChanged(data: { page: number; entries: number; total: number }) {
this.searchArguments.page = data.page;
this.searchArguments.pageSize = data.entries;
this.loadUsers.emit(this.searchArguments);}

Hope someone can help.

Best greetigns


Arkadiusz Idzikowski staff commented 1 year ago

@modernwebdesign It looks like there is a bug in the component code, we will take a closer look at that to find the cause of this problem and add a fix as soon as possible.


raphael_tec360 premium commented 1 year ago

The same issue faced!


Arkadiusz Idzikowski staff commented 1 year ago

@raphael_tec360 Did you update MDB5 Angular version to 2.3.0?



@modernwebdesign We added a fix for this bug in v2.3.0, please upgrade your MDB5 Angular version.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 2.2.0
  • Device: Desktop
  • Browser: Chrome, Firefox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No