Problem with row selection #2431
-
I'm attempting to use row selection but I'm experiencing problems with the checkboxes. The first selected checkbox appears to work fine, but subsequent checkbox selects are not working. Subsequent checkboxes do not show as selected and do not update the diagnostic block on the page and there are no errors in the dev tools console. To isolate the problem I copied App.js from the row selection example in this repo over App.js in my project. The same issue occurred. Then I cloned this repo, ran "npm install", and started a new development server. It worked! Same (App.js) code in different npm environments behaves differently. Any ideas how I can isolate which npm module is causing my problem? My project is new and was bootstrapped with CRA. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey, Share codesandbox if possible. If you doing manual pagination? If so, then there is a different approach to this. |
Beta Was this translation helpful? Give feedback.
-
I figure it out! CRA included "React.StrictMode" tags around my application root component in index.js. By removing these tags my checkboxes are now working as they should. @tannerlinsley - Is this a known issue? Sorry I'm new to React. |
Beta Was this translation helpful? Give feedback.
I figure it out! CRA included "React.StrictMode" tags around my application root component in index.js. By removing these tags my checkboxes are now working as they should. @tannerlinsley - Is this a known issue? Sorry I'm new to React.