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

PrimeVue DataTable bug #977

Closed
hradev opened this issue Feb 15, 2021 · 1 comment
Closed

PrimeVue DataTable bug #977

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

Comments

@hradev
Copy link

hradev commented Feb 15, 2021

hi There,

I think I found a bug on the PrimeVue demo,

when you go to Datatable -> Documentation -> first table on page, search by name, remove search, pagination doesn't work anymore.

I picked up the problem in my project, and checked the demo does the same .

Regards,
H

@cagataycivici cagataycivici self-assigned this Feb 17, 2021
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Feb 17, 2021
@cagataycivici cagataycivici added this to the 3.3.0-rc.1 milestone Feb 17, 2021
@luke-z
Copy link

luke-z commented Jul 13, 2021

I've seen that the issue has been fixed in version 3.x.
But the problem still exists with the latest 2.x version, 2.4.2.

As we are developing with nuxtjs, which does not support vue3 yet, we cannot update to primevue 3.

I noticed that it happens as soon as the filters object has a key inside.
As long as an empty object is passed to the filters prop on DataTable, the pagination works.

But the moment it receives a key, through v-model changes for example, the pagination stops working.

I tried

filters: {
   global: null
}

filters: {
   global: ""
}

But only an empty object works:
filter: {}

A workaround would be to remove the key as soon as the value is empty. But filtering often leaves us with more than one page of results, which are inaccessible at the moment.

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

3 participants