ant-design/ant-design







The issue has been closed
table filterIcon click the first second times will call onChange,but just the first second times ,the second second ....times will not #11164
FightingJane posted onGitHub
- 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(正式版本)
Reproduction link
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 -->