Skip to content

antd表格设置默认筛选值,并设置filterResetToDefaultFilteredValue='true',当无选中筛选值时,想恢复默认筛选值,重置按钮不能点击 #35226

@Ryang-H

Description

@Ryang-H

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1、设置defaultFilteredValue。
2、设置filterResetToDefaultFilteredValue='true'。
3、取消所有筛选值
4、已经设置了filterResetToDefaultFilteredValue,想恢复默认筛选值,而重置按钮却无法点击

What is expected?

设置了filterResetToDefaultFilteredValue,没有选中任何筛选数据,想恢复为默认筛选值,重置按钮被禁用掉了。

What is actually happening?

设置了filterResetToDefaultFilteredValue,无选择筛选数据,想恢复为初始值,重置按钮却无法点击

Environment Info
antd 4.20.0
React 17.0.1
System window10
Browser Microsoft Edge 98.0.1108.62

Metadata

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.🐛 BugAnt Design Team had proved that this is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions