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

Dynamic data import sets pager to last page #130

Open
potofcoffee opened this issue Nov 10, 2023 · 1 comment
Open

Dynamic data import sets pager to last page #130

potofcoffee opened this issue Nov 10, 2023 · 1 comment

Comments

@potofcoffee
Copy link

I'm using dataset in a component that dynamically loads in data in its created() method. This means, the data array is initially empty and gets filled once the AJAX call has finished. Dataset correctly displays the data, however, if there is more than one page, it always jumps to the last page. Is there a way to fix this?

Alternatively, is there a way to programmatically set the current page?

@kouts
Copy link
Owner

kouts commented Nov 11, 2023

Hey @potofcoffee, normally the dataset should set the current page to 1 after the data updates.
Which version of Vue are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants