primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Sorting a TurboTable calls the onLazyLoad function twice

Open ARandomDude opened this issue 8 years ago • 4 comments

I'm submitting a ... (check one with "x")

[ X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Plunkr Case (Bug Reports) http://plnkr.co/edit/WkS8CW641gowwpgxzHaA?p=preview (Click on the table headers)

Current behavior When the new turbo table is in lazy mode, clicking on a header to sort the table calls the lazy load function twice.

Expected behavior The function should be called once.

Please tell us about your environment: See Plunkr.

ARandomDude avatar Jan 19 '18 13:01 ARandomDude

@cagataycivici this is not resolved. Sorting p-table causes onLazyLoad to fire once from onClick and then again when the sortOrder setter is called.

banderberg avatar Aug 02 '19 16:08 banderberg

Any idea when this might be fixed? I'm facing this exact issue.

lnbxyz avatar Aug 23 '19 16:08 lnbxyz

You can try something like this !this.loading && this.loadData()

Okz1 avatar Jan 02 '20 14:01 Okz1

You can try something like this !this.loading && this.loadData()

This helps, but i think that is a workaround not a behavior

NathanAlcantara avatar Jan 30 '20 12:01 NathanAlcantara