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: Edited cell values are not updated after value sorting #6572

Open
KumJungMin opened this issue Oct 14, 2024 · 0 comments
Open

DataTable: Edited cell values are not updated after value sorting #6572

KumJungMin opened this issue Oct 14, 2024 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@KumJungMin
Copy link
Contributor

Describe the bug

  • When I edit the values in the "Quantity" column and then sort the table, the values are correctly displayed after sorting.
  • However, when I click on the same table field again, the old values reappear instead of the updated ones.
2024-10-14.10.55.39.mov

Reproducer

https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-m8vvlj?file=src%2FApp.vue,src%2Fmain.ts

PrimeVue version

latest

Vue version

4.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

  1. Click on the quantity cell in the first row and change the value to 1, causing the row's position to change due to sorting.
  2. After sorting, click on the quantity cell in the new first row.
  3. The quantity value of this row incorrectly displays as 1, causing a bug.

Expected behavior

  • After editing cells, the new values in the edited cells should be saved and sorted correctly.
  • The sorted values should be displayed correctly when the same field is clicked again.
@KumJungMin KumJungMin added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant