https://github.com/ant-design/ant-design/issues/11164Go to Github

FundedView intable filterIcon click the first second times will call onChange,but just the first second times ,the second second ....times will not #11164

FightingJanecreated the issue 3 months ago

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

Version

3.6.4

Environment

win7 google 版本 63.0.3239.132(正式版本)

Edit on CodeSandbox

Steps to reproduce

click the filterIcon,show filterDropdown, click the filterIcon again ,will alert('test')

What is expected?

not call onChange

What is actually happening?

call onChange


how to prevent from calling onChange?

filterDropDown.js the judge seem to be a bit of a problem:

{
        key: 'confirmFilter',
        value: function confirmFilter() {
            if (this.state.selectedKeys !== this.props.selectedKeys) {
                this.props.confirmFilter(this.props.column, this.state.selectedKeys);
            }
        }

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->

Logs

  1. loadbalance-sudachi-kunfunded $256about 1 month ago
  2. 0maxxam0funded $53 months ago

Total Fund

$261

You will get $182.7 when resolving this issue

Funded by

2

Work status

No one is working