Sorting a single column emits an 'onPage' event #3408
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ... (check one with "x")
Current behavior
In version 4.1.0 of the
DataTable
the setter for thefirst
value triggers pagination which in turn emits anonPage
event.The
sortSingle()
method setsthis.first = 0;
which will therefore emit theonPage
event.Expected behavior
No
onPage
event emitted on sorting a single column.That is,
sortSingle()
should probably set the private variable_first
instead offirst
to 0 (as is done in all other places of theDataTable
where the first value is reset).Please tell us about your environment:*
Angular version: 4.3.0
PrimeNG version: 4.1.0
Browser: all
The text was updated successfully, but these errors were encountered: