DataTable Filter: row filter type error with React18 (while in React.StrictMode) #2947
Labels
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
Milestone
Describe the bug
While using React.StrictMode, typing in filter row input throws type error:
datatable.esm.js:2842 Uncaught TypeError: Cannot set properties of undefined (setting 'value')
If typing into global filter first, it then allows to type into the row filter inputs eventually.
Reproducer
https://codesandbox.io/s/primereact-test-forked-7dqvg5?file=/src/DatatableFilterTest.js
PrimeReact version
8.1.x
React version
18.x
Language
ALL
Build / Runtime
Create React App (CRA)
Browser(s)
No response
Steps to reproduce the behavior
Go to sandbox link provided, type into row input (while in
StrictMode
, given) see error.Type into global filter, then try row inputs - works.
comment out
<React.StrictMode>
, row inputs work.Expected behavior
No response
The text was updated successfully, but these errors were encountered: