ant-design / ant-design/pro-components

🐛[BUG] - Filter in Column don't seem to work

Open
#8,466 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

Hi,

Local filtering for ProTable doesn't seem to work, at least partially.
I have the following columns def:
https://github.com/SquirrelCorporation/SquirrelServersManager/blob/master/client/src/pages/Admin/Inventory/InventoryColumns.tsx
For some reason, filtering locally with the field "IP" works, but the others don't.
Am I doing something wrong or this is a bug?
Screenshot 2024-06-03 at 14 33 10

- "@ant-design/icons": "^5.3.7",
- "@ant-design/pro-components": "^2.7.9",
- "@ant-design/use-emotion-css": "1.0.4",
- "@umijs/route-utils": "^4.0.1",
- "@ant-design/charts": "^2.1.1",
- "antd": "^5.17.4",

Contributor guide

Open the contributing guide

Research direction

Start with client/src/pages/Admin/Inventory/InventoryColumns.tsx and inspect how the ProTable columns configure local filtering. Reproduce the issue using the listed @ant-design/pro-components and antd versions, comparing the working IP filter with the other fields. Done means the non-IP local filters behave as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.