table icon indicating copy to clipboard operation
table copied to clipboard

Column options are not working

Open malsioufi opened this issue 6 years ago • 4 comments

Describe the bug (required) When I set isVisible or canFilter on a column to false, both option are overridden

Provide an example via Codesandbox! (required) I have started with the filtering example and modified it a little bit https://codesandbox.io/s/divine-wood-b9331

Steps To Reproduce (required) Steps to reproduce the behavior:

  1. Set isVisible or canFilter on a column to false Check: https://codesandbox.io/s/divine-wood-b9331?file=/src/App.js

Expected behavior (Recommended) To have a hidden column or the column can not be filtered

malsioufi avatar Apr 20 '20 08:04 malsioufi

were you able to fix the issue? I'm getting same results if I set canFilter to false it still gets overwritten to true

jaekunchoi avatar May 02 '20 04:05 jaekunchoi

Not really, in fact I changed to another package after I felt that react-table v7 is over-complicating things for me. But there is another discussion related to the issue, you can find it here https://github.com/tannerlinsley/react-table/issues/1804

malsioufi avatar May 02 '20 11:05 malsioufi

I actually used disableFilters to true and it worked fine. See useFilters documentation

jaekunchoi avatar May 02 '20 13:05 jaekunchoi

I actually used disableFilters to true and it worked fine. See useFilters documentation

Yep!

tannerlinsley avatar May 05 '20 20:05 tannerlinsley