Skip to content

Commit

Permalink
Merge 175b562 into 58e5032
Browse files Browse the repository at this point in the history
  • Loading branch information
s0 committed Dec 13, 2018
2 parents 58e5032 + 175b562 commit c9da4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Element.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class Element extends Component {
animEnd = () => {
const type = this.state.show ? 'enter' : 'leave';
this.props.callBack(type);
this.setState({ show: this.props.show, mouseMoveType: null });
this.setState((_, props) => ({ show: props.show, mouseMoveType: null }));
}

animChildren = (props, style, bgElem) => {
Expand Down

0 comments on commit c9da4fc

Please sign in to comment.