inovua / reactdatagrid

Empower Your Data with the best React Data Grid there is
https://reactdatagrid.io
Other
3.45k stars 57 forks source link

The Clear/Clear All filter menu crashes after changing enableFiltering to false and then returning it back to true. #398

Open vasyl-hordynskyy opened 7 months ago

vasyl-hordynskyy commented 7 months ago

Relevant code or config Change the enableFiltering properties

What you did: I used the default example for enableFIltering from the documentation(https://reactdatagrid.io/docs/api-reference#props-enableFiltering). In this example, when I changed the enableFiltering to false and then returning it back to true, opening the filter menu on Name column and press Clear or Clear All menu an error is logged in the console. What happened: Error in console cannot read properties of null on Clear\Clear All filter menu click. image

Reproduction repository: App example

Problem description: The Clear/Clear All filter menu crashes after changing enableFiltering to false and then returning it back to true.

Suggested solution: