Skip to content

clearFilters is not working on Table component #34109

Closed
@smoudenwa

Description

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://ant.design/components/table/#components-table-demo-custom-filter-panel

Steps to reproduce

Add a filter on the 'Name' column for example.
Click on Search button to apply the filter
Click on Reset button to clear the filter

What is expected?

Filter should be cleared, and the table data should be back to default

What is actually happening?

Filter is cleared but the table data don't change

Environment Info
antd 4.18.7
React 17
System Windows
Browser Chrome

Link to CodeSandbox example : https://codesandbox.io/s/hi7fs
Working example on 3.X : https://3x.ant.design/components/table/#components-table-demo-custom-filter-panel

Metadata

Assignees

No one assigned

    Labels

    help wantedThe suggestion or request has been accepted, we need you to help us by sending a pull request.💡 Feature Request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions