primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.9k stars 1.05k forks source link

DataTable filter / selectedColumns BUG #2541

Closed primperfum closed 2 years ago

primperfum commented 2 years ago

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[X ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports) https://codesandbox.io/s/column-toggle-lst3u?file=/src/App.js

Current behavior In Datatable when You have filtering enabled and column toggle enabled && You have defaultSelectedColumns !== columns which are options in multiselect, when you toggle a column which isnt in defaultSelectedColumns there error appears.

Expected behavior No error

mertsincan commented 2 years ago

Hi,

I couldn't replicate it with the latest PrimeReact version. Please try it.

Best Regards,