primereact icon indicating copy to clipboard operation
primereact copied to clipboard

DataTable: editor fires the function 6 times with strictmode and 3 times without stricmode

Open MuhammedKilinc60 opened this issue 2 years ago • 4 comments

Describe the bug

I am trying to make a editable table and i when i focus, it runs the function 6 times with strictmode and 3 times without stricmode. <Column field="array_options.options_operative_information" header="Operative Information" dataType="text" style={{ minWidth: "10%" }} bodyStyle={{zIndex:0}} filter sortable // bodyClassName={(options) => // actives.includes(options.rowid) && // "p-disabled border-2 border-red-500" // } // editor={(options) => cellEditor(options)} editor={(options) => console.log(options)} onCellEditComplete={(options) => onCellEditComplete(options)} onCellEditCancel={onCellEditCancel} />

Reproducer

https://stackblitz.com/edit/react-bobdbj-ecqtm8?file=src%2Fdemo.js

PrimeReact version

9.0.0-rc.1

React version

18.x

Language

ES6

Build / Runtime

Create React App (CRA)

Browser(s)

chrome

Steps to reproduce the behavior

  1. click in the editable cell

Expected behavior

No response

MuhammedKilinc60 avatar Feb 15 '23 15:02 MuhammedKilinc60

please edit this StackBlitz I have created for you to show the issue: https://stackblitz.com/edit/react-bobdbj?file=src%2Fdemo.js

it helps developers solve the problem better if they can see the issue.

melloware avatar Feb 15 '23 16:02 melloware

Reproducer: https://stackblitz.com/edit/react-bobdbj-ecqtm8?file=src%2Fdemo.js

Click on a cell from Name column => check console

andreev-artem avatar Jul 07 '23 06:07 andreev-artem

Thanks!

melloware avatar Jul 07 '23 11:07 melloware

This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment!

github-actions[bot] avatar Jul 02 '24 01:07 github-actions[bot]

This issue has been automatically marked as stale. If this issue is still affecting you with the latest version, please leave any comment, and we will keep it open. We are sorry that we have not been able to prioritize it yet. If you have any new additional information, please include it with your comment!

github-actions[bot] avatar Jun 28 '25 01:06 github-actions[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you for your understanding!

github-actions[bot] avatar Jul 06 '25 01:07 github-actions[bot]