Comments (4)
From my experience, this only appears during local development after a hot module reload (HMR / saving your code). I don't think it ever occurs in production. Hearing that you did eventually see it happen in prod is a bit concerning. We'll need to look into it more if that is true.
from mantine-react-table.
Currently workarounded with:
columnFilterFns: Object.keys(columnVisibility).reduce((acc, key) => ({ ...acc, [key]: 'contains' }), {})
Btw, it doesn't works if I put fuzzy
in above snippet instead of contains
. Maybe it will help to debug the issue.
from mantine-react-table.
Hi Guria, I am also facing the similar issue in my application, I am using server side filtering and sorting. I have defined my columns like below { accessor: "column1",
accessorFn: (row) => row.baseApprovalEntity?.totalVotes,
id: "column1",
header: "Header",
enableColumnFilterModes: true,
columnFilterModeOptions: ["equals", "notEquals", "lessThan", "greaterThan", "greaterThanOrEqualTo", "lessThanOrEqualTo"],
filterFn: 'equals'} and i am using my mantine table as below
<MantineReactTable
mantinePaperProps={{
shadow: "none",
sx: {
borderRadius: "0",
border: "none",
},
}}
manualSorting
manualFiltering
manualPagination
enableStickyHeader
enableStickyFooter
mantineTableContainerProps={{
sx: { height: tableHeight ? 710 : 500 },
}}
filterFromLeafRows
paginateExpandedRows={false}
enablePinning
initialState={{
density: "xs",
showColumnFilters: true,
columnPinning: { right: ["mrt-row-actions"] },
}}
enableGlobalFilter={false}
enableColumnActions={false}
enableFullScreenToggle={false}
enableDensityToggle={false}
enableMultiSort={false}
enableEditing
enableColumnFilterModes
renderTopToolbarCustomActions={() => (
<Title order={3} align="center" ml="1rem">
{pageName}
</Title>
)}
rowCount={totalCount}
onSortingChange={setSorting}
onPaginationChange={setPagination}
onColumnFiltersChange={setColumnFilters}
onColumnFilterFnsChange={setColumnFilterFns}
state={{
pagination,
isLoading,
sorting,
columnFilters,
columnFilterFns
}}
columns={tableHeader}
data={tableData}
/>
For me Filter Mode is coming as undefined, every time i have to select the mode from the options before apllying the filter. Can you help me to identify the root cause and possible solution for this?
from mantine-react-table.
Currently workarounded with:
columnFilterFns: Object.keys(columnVisibility).reduce((acc, key) => ({ ...acc, [key]: 'contains' }), {})
Btw, it doesn't works if I put
fuzzy
in above snippet instead ofcontains
. Maybe it will help to debug the issue.
Hi, where did you put this code? Or could you share a whole file that works for this issue?
from mantine-react-table.
Related Issues (20)
- Checkbox filter doesn’t have a filled colour by default
- x buttons styling on column select filtering inputs is smaller than the other x
- All filters are in bold
- Basic footer string doesn’t work
- sticky custom Footer displays a footer with transparent background HOT 1
- Loading overlay displays over sticky header when scrolling down the page
- Horizontal padding in detail panel differs from v1
- Alert banner overlays with first row when selecting row
- Different behaviour between v1 and v2 for Header Groups with Sticky Header
- Pagination, Unselecting current value for Rows per page defaults to one row per page
- Global column ordering dosent have the dotted border and wrong spacing HOT 2
- Warning: Check the render method of `@mantine/core/Tooltip` with Mantine 7 and MRT V2 HOT 1
- Flicker with NextJS
- Column Virtualization causing pinning error
- header is not sticky despite enableStickyHeader prop being true HOT 1
- Cannot install mantine-react-table v2 HOT 1
- Horizontal and vertical scrollbar are not displayed on Linux HOT 1
- Footer cells doesn't align with columns in V2 HOT 2
- Localization gives "Failed to resolve import... Does that file exist?" HOT 4
- Adding a custom class to mantineTableHeadRowProps is not working
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.