Comments (4)
I should also mention to just change columnFilterDisplayMode: 'popover',
to subheader
or just comment out that line, to get filters to work (maybe that's another bug with popover?)
from mantine-react-table.
Hi there, so I've been playing around with this. And although I can reproduce this behavior with both popover
and subheader
I do not believe this is a bug. The reasons is that filtering the rows does not alter the selection even in TanStack Table itself, however, to achieve the behaviour you want, you can use getFilteredSelectedRowModel
instead. This comes directly from TanStack so the typings won't match MRT_TableRow
.
from mantine-react-table.
Hey,
what I did in the end, was keeping columnFilters
in a state.
And then I just resetted the selections every time filters change, like so:
useEffect(() => { table.resetRowSelection(); }, [columnFilters]);
So I am forcing the user to click again on "Select All" checkbox, so that I can get a new selection.
from mantine-react-table.
Great that you solved it! I think you should try with the method I mentioned above though, it might allow you to implement the same functionality without the extra useEffect
from mantine-react-table.
Related Issues (20)
- Grouping causes rows count to increase HOT 1
- Row dividers are not visible in Firefox HOT 3
- Tables editable when enableEditing is undefined
- Scrollbar is over header and not just body HOT 1
- Some func missing HOT 5
- Hidden Columns and Updating Rows HOT 3
- Column Virtualization - if filtered rows = 1, filters need to be cleared
- "Select All" or "Unselect All" filter option
- Setting enableFacetedValues on a column with null values crashes the table with localCompare error HOT 1
- how can i know if the alert banner is opening? HOT 1
- [v2] Use Custom Editing Components freezes when clicking the edit row button HOT 2
- Row action buttons in Advanced example do not work correctly when all rows are selected HOT 1
- how to know if the alert banner HOT 1
- 'multi-select' filter throws error when accessorKey is number
- support in Right to left
- When the rows are pinned, scrolling up or down overlaps with the pinned rows. HOT 1
- Resize column with enableRowVirtualization, when there is only 1 single row data, the resize cause that row disappear
- Mantine-table resets index to zero when controlled HOT 2
- Pagination reset after editing row
- column hidden or visible based on the values or onChange prop in the mantineEditSelectProps HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mantine-react-table.