-
Notifications
You must be signed in to change notification settings - Fork 405
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
Page change event triggered when perPage is changed #382
Comments
It seems like this is intentional behavior from #371 ? |
Actually this behaviour has been added in #370 |
@VictorCazanave Got it. Thank you for your confirmation. Agreed. Going with simpler method is usually better in this case. @xaksis I've put together a JSFiddle to highlight the issue I'm facing with using https://jsfiddle.net/8dbemzjp/ Since If there is no particular reason behind having the page changed to 1 before emitting Ref: https://github.com/xaksis/vue-good-table/pull/371/files#r214557822 |
@josephting took your recommendation. 2.13.3 has your fix. |
Issue Type
Specs
Expected Behavior
Changing perPage should ONLY trigger
on-per-page-change
eventActual Behavior
Changing perPage triggered both
on-per-page-change
&on-page-change
eventSteps to Reproduce the Problem
Please detail your steps here
onPerPageChange
event getting triggeredonPerPageChange
andonPageChange
at the same timejsfiddle
https://jsfiddle.net/Lp8xw7ec/
v2.13.0 behavior - https://jsfiddle.net/saemvn4p/
The text was updated successfully, but these errors were encountered: