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

fix(Modal): fix state update after close #2254

Merged
merged 1 commit into from
Oct 29, 2017
Merged

Conversation

layershifter
Copy link
Member

Fixes #2236.


this.trySetState({ open: false }, { scrolling: false })
_.invoke(this.props, 'onClose', e, this.props)
this.trySetState({ open: false })
Copy link
Member Author

Choose a reason for hiding this comment

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

My initial suggestion there was falsy. It causes state after onClose was done.

The same effect can be archived when scrolling will be reseted in handleMount.

@codecov-io
Copy link

Codecov Report

Merging #2254 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2254      +/-   ##
==========================================
- Coverage   99.73%   99.73%   -0.01%     
==========================================
  Files         151      151              
  Lines        2624     2621       -3     
==========================================
- Hits         2617     2614       -3     
  Misses          7        7
Impacted Files Coverage Δ
src/modules/Modal/Modal.js 100% <100%> (ø) ⬆️

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 28c8af9...0d78568. Read the comment docs.

@levithomason
Copy link
Member

Released in semantic-ui-react@0.76.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants