You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
event.data is already updated with the information that was saved by clicking the check icon. Even worse, event.data points to the corresponding entity in products (original source).
event.newData has the updated information. So, event.data and event.newData both holds the updated information.
I think this is a really big issue. What if i want to apply some validation rules before updating the entity's original source?
The text was updated successfully, but these errors were encountered:
lucasdavidferrero
changed the title
When saving row in a Datatable using editMode=row source entity is mutated
When saving row in a Datatable using editMode=row => source entity is mutated
Mar 5, 2025
We're unable to replicate your issue, if you are able to create a reproducer by using PrimeVue Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days.
Original entity is mutated when using editMode=row in Datatable component.
example:
event.data
is already updated with the information that was saved by clicking the check icon. Even worse,event.data
points to the corresponding entity inproducts
(original source).event.newData
has the updated information. So,event.data
andevent.newData
both holds the updated information.I think this is a really big issue. What if i want to apply some validation rules before updating the entity's original source?
template code:
The text was updated successfully, but these errors were encountered: