Skip to content

globalFilterModeOptions ignores options beyond fuzzy, contains, startsWith #554

@miguelmarcondesf

Description

@miguelmarcondesf

mantine-react-table version

v1.3.4

react & react-dom versions

19.2.3

Describe the bug and the steps to reproduce it

Hello there!

On docs we have this affirmation You can then customize which filter modes are available in the dropdown by setting the globalFilterModeOptions prop

But when passing globalFilterModeOptions with filter modes like 'equals', they are silently excluded from the global filter dropdown menu. Only fuzzy, contains, and startsWith can ever appear, regardless of what is passed in globalFilterModeOptions.

Minimal, Reproducible Example - (Optional, but Recommended)

<MantineReactTable
  columns={columns}
  data={data}
  enableGlobalFilterModes
  globalFilterModeOptions={['contains', 'startsWith', 'equals']}
  globalFilterFn="contains"
/>

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

Yes, I think I know how to fix it and will discuss it in the comments of this issue

Terms

  • I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions