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

[Bug Report] v-data-table pagination event fired twice... #10715

Closed
ais-one opened this issue Mar 1, 2020 · 3 comments · Fixed by #10769 or moghwan/coroma-19#1 · May be fixed by SigmaITC/competencebyjava-front-end#8
Closed

[Bug Report] v-data-table pagination event fired twice... #10715

ais-one opened this issue Mar 1, 2020 · 3 comments · Fixed by #10769 or moghwan/coroma-19#1 · May be fixed by SigmaITC/competencebyjava-front-end#8
Labels
C: VDataTable VDatatable T: bug Functionality that does not work as intended/expected

Comments

@ais-one
Copy link

ais-one commented Mar 1, 2020

Environment

Vuetify Version: 2.2.15
Last working version: 2.2.14
Vue Version: 2.6.11
Browsers: Chrome 80.0.3987.122
OS: Windows 10

Steps to reproduce

Below is the steps on how I made the reproduction link - https://codepen.io/ais-one/pen/OJVgxWZ

1.Go to documentation (Vuetify version 2.2.15):

https://vuetifyjs.com/en/components/data-tables#paginate-and-sort-server-side

  1. Open the codepen

  2. add event to :

@Pagination="doPage"

  1. add method:

doPage () { console.log('Paged', Date.now()) },

  1. run and see on console.log... the pagination event is firing twice.

Expected Behavior

pagination event should only fire once

Actual Behavior

pagination event fired twice

Reproduction Link

https://codepen.io/ais-one/pen/OJVgxWZ

Other comments

Refer to issue below also...

#10212 (comment)

@ais-one
Copy link
Author

ais-one commented Apr 16, 2020

It is happening again, at least on 2.2.22

@rizypb
Copy link

rizypb commented Jan 13, 2022

It's still happening on version 2.4.0. For now I am not calling the pagination method on page load. It solved the problem but if anyone has any better solution / suggestion, please do share.

@mihalw28
Copy link

mihalw28 commented Apr 6, 2022

Still happening on version 2.6.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDataTable VDatatable T: bug Functionality that does not work as intended/expected
Projects
None yet
4 participants