GithubHelp home page GithubHelp logo

Comments (4)

KevinVandy avatar KevinVandy commented on May 21, 2024

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.

Guria avatar Guria commented on May 21, 2024

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.

rrahul789 avatar rrahul789 commented on May 21, 2024

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.

snturk avatar snturk commented on May 21, 2024

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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.