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

Closed
KumJungMin opened this issue Oct 14, 2024 · 0 comments · Fixed by #6984
Closed

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

KumJungMin opened this issue Oct 14, 2024 · 0 comments · Fixed by #6984
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

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
@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Nov 12, 2024
@tugcekucukoglu tugcekucukoglu removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 26, 2024
@tugcekucukoglu tugcekucukoglu added this to the 4.2.6 milestone Dec 26, 2024
@github-project-automation github-project-automation bot moved this to Review in PrimeVue Dec 26, 2024
@github-project-automation github-project-automation bot moved this from Review to Done in PrimeVue Dec 26, 2024
@tugcekucukoglu tugcekucukoglu self-assigned this Jan 8, 2025
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
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants