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

DataTable: Row edits when enabled doesn't work with pagination #3801

Closed
dassels opened this issue Mar 26, 2023 · 0 comments
Closed

DataTable: Row edits when enabled doesn't work with pagination #3801

dassels opened this issue Mar 26, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@dassels
Copy link

dassels commented Mar 26, 2023

Describe the bug

When using DataTable with pagination and row edits enabled, making edits to pages other than the first page the edits appear only on items on the first page.

Reproducer

https://stackblitz.com/edit/angular-bdsewd?file=src%2FApp.vue

PrimeVue version

3.25.0

Vue version

3.x

Language

ALL

Build / Runtime

Vite

Browser(s)

https://stackblitz.com/edit/angular-bdsewd?file=src/App.vue

Steps to reproduce the behavior

Go to provided stackblitz link
After app loads, click on 'page 2'
Edit a row, for example, the 2nd last one change value in 'Name' column to something else
The edited row doesn't retain value
Click on 'page 1'
Edited value shows on 2nd last row on page 1

Expected behavior

When on any page other than the 1st page, editing a row value show be reflected in the row that was just edited rather than showing on the first page.

@dassels dassels added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 26, 2023
@dassels dassels changed the title Component: DataTable with row edits enabled doesn't work with pagination DataTable: Row edits when enabled doesn't work with pagination Mar 26, 2023
@mertsincan mertsincan added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 27, 2023
@mertsincan mertsincan self-assigned this Mar 27, 2023
@mertsincan mertsincan added this to the 3.26.1 milestone Mar 27, 2023
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

2 participants