Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/table onchange event fired everytime when close filterdropdown #11166

Conversation

adybionka
Copy link
Contributor

This pull request fix this bug #11164

@ant-design-bot
Copy link
Contributor

Deploy preview for ant-design ready!

Built with commit d549b9d

https://deploy-preview-11166--ant-design.netlify.com

@codecov
Copy link

codecov bot commented Jul 5, 2018

Codecov Report

Merging #11166 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11166      +/-   ##
==========================================
+ Coverage   91.64%   91.65%   +<.01%     
==========================================
  Files         194      194              
  Lines        4788     4791       +3     
  Branches     1336     1337       +1     
==========================================
+ Hits         4388     4391       +3     
  Misses        396      396              
  Partials        4        4
Impacted Files Coverage Δ
components/table/filterDropdown.tsx 96.7% <100%> (+0.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d7ac58...d549b9d. Read the comment docs.

this.props.confirmFilter(this.props.column, this.state.selectedKeys);
const { selectedKeys } = this.state;

if (this.hasSelectedKeys() && !shallowequal(selectedKeys, this.props.selectedKeys)) {
Copy link
Member

@yesmeck yesmeck Jul 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need this.hasSelectedKeys(), if state.selectedKeys and props.selectedKeys are both empty, they are shallow equal, otherwise, if one is empty and the other one is not, they are absolutely not shallow equal.

@yesmeck
Copy link
Member

yesmeck commented Jul 24, 2018

Merged in 968371b

@yesmeck yesmeck closed this Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants