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

Datatable : onLazyLoad event fire twice when "first" property is different from 0 #3399

Closed
loic49 opened this issue Jul 15, 2017 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@loic49
Copy link

loic49 commented Jul 15, 2017

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

Current behavior

When I defined "first" property to a value different from 0, onLazyLoad event is fired twice. Indeed, event is fired on ngOnInit and on the set of "first" property when value is différent from 0.

Expected behavior

Event onLazyLoad should fire once even if "first", "order", "filter" properties are initialized with a value different from defaults.

Please tell us about your environment:

  • Angular version: 4.2.6
  • PrimeNG version: 4.1.0
  • Browser: Chrome
@loic49 loic49 changed the title onLazyLoad event fire twice when "first" property is different from 0 Datatable : onLazyLoad event fire twice when "first" property is different from 0 Jul 15, 2017
@cagataycivici cagataycivici self-assigned this Aug 23, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 23, 2017
@cagataycivici cagataycivici added this to the 4.1.4 milestone Aug 23, 2017
@cagataycivici
Copy link
Member

Replicated.

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

2 participants