Datatable editing... something has changed?

UI Components for Vue
Post Reply
GavynSykes
Posts: 6
Joined: 10 Mar 2021, 18:03

14 Oct 2021, 09:41

Hello everyone.

I'm using primevue datatables in my web app and it works great, especially the in place editing system.

Suddenly, it stopped working. Now if I click the cell the input text appears, but if I press enter the resulting text (and underlying data) stay the same, it doesn't save my input.

Troubleshooting I found that it works if I add to the datatable @cell-edit-complete="onCellEditComplete" with the code:

Code: Select all

const onCellEditComplete = (event) => {
	let { data, newValue, field } = event;
	data[field] = newValue;
};
It seems that I have to save the data by myself, but I used the datatables for month and this process was automatically done when I completed the edit. The underlying data was updated with the text input.

Anyone can have an idea about this issue? Has something changed in the datatables source code?

Thanks a lot

GavynSykes
Posts: 6
Joined: 10 Mar 2021, 18:03

14 Oct 2021, 14:53

While looking at primevue github commit, I noticed that this behaviour appeared recently, so I guess it's a new feature to let the user decide how to handle edited data.

I have to check in detail every primevue changelog to avoid any malfuction in my web application

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

02 Nov 2021, 13:45

Yes, please see the release notes for breaking changes. Editing has been redone.

https://www.primefaces.org/primevue-3-8-0-released/

https://github.com/primefaces/primevue/ ... 2021-10-25

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests