Skip to content

Cell's filterFn never gets called #4942

Description

@SpadarShut

Describe the bug

The filterFn prop of a cell definition never gets called.
My initial problem was that the filterFn's resolveFilterValue was never called, but in fact filterFn is just ignored.

Your minimal, reproducible example

https://codesandbox.io/p/sandbox/stupefied-water-3kcw7h?embed=1&file=%2Fsrc%2Fmain.tsx%3A52%2C18

Steps to reproduce

1 Create a basic table with a filterFn prop on a cell
2 Optionally add globalFilter
3 try to search

Expected behavior

As a user I expect filterFn to be called, but returning false from the fn of plain console.log/alert never gets executed.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS

react-table version

8.9.3

TypeScript version

5.1.3

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable 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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions