Skip to content

Table> double call to (onLazyLoad) event after #15996 #16070

@ymg2006

Description

@ymg2006

Describe the bug

When lazy is true on the table sorting causes double call to (onLazyLoad) event after commit: Fixed #15550 - Table | Custom sort in table not working #15996.
Screenshot 2024-07-21 093654

Environment

Windows 11

Reproducer

No response

Angular version

17.3.6

PrimeNG version

17.18.5

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

v20.12.1

Browser(s)

All

Steps to reproduce the behavior

<p-table #dataTable
(onLazyLoad)="getUsers($event)"
[value]="users"
[rows]="100"
[lazy]="true"

Expected behavior

one call to onLazyLoad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LTS-PORTABLEIssue's fix will be ported to supported LTS versionsType: BugIssue contains a bug related to a specific component. Something about the component is not working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions