Prime react Datatable edit field issue

UI Components for React
Post Reply
Ramakrishna.Jetti
Posts: 27
Joined: 20 May 2022, 18:07

06 Jul 2022, 13:12

Hi Team,

We are updated the code from primereact 6.5.1to 7.2 version, we are facing an issue in the Datatable edit field is not working.

Code: Select all

const onEditorValueChange = (props, value) => {
    let updatedProducts = [...props.value];
    updatedProducts[props.rowIndex][props.field] = value;
    setProducts(updatedProducts);
}
The above code is working fine before updating the code base but after updating the above code is not working, we observe props.value contains edit field value but earlier props.value contains the list of objects. if we change the value from props.value to props.props.value value is updating but field value is not updating. so many code changes are required to fix the issue.

Can you please provide me the solution or the migration document for datatables.

petermtsuk
Posts: 1
Joined: 06 Nov 2022, 10:22

06 Nov 2022, 10:29

This is still an issue with release 8.7.1

Are there any plans to fix it?

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

17 Nov 2022, 15:33

I would create a Code Sandbox reproducer and report it to the GitHub issues page if you want the issue noticed and fixed.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests