Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting a TurboTable calls the onLazyLoad function twice #4889

Closed
ARandomDude opened this issue Jan 19, 2018 · 4 comments
Closed

Sorting a TurboTable calls the onLazyLoad function twice #4889

ARandomDude opened this issue Jan 19, 2018 · 4 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@ARandomDude
Copy link

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.

@cagataycivici cagataycivici self-assigned this Jan 22, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Jan 22, 2018
@cagataycivici cagataycivici added this to the 5.2.0-RC2 milestone Jan 22, 2018
@banderberg
Copy link

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

@lnbxyz
Copy link

lnbxyz commented Aug 23, 2019

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

@Okz1
Copy link

Okz1 commented Jan 2, 2020

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

@NathanAlcantara
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

6 participants