Skip to content

Commit

Permalink
return offsetHeight on updateOffsetHeight
Browse files Browse the repository at this point in the history
  • Loading branch information
maerzhase committed Jul 13, 2020
1 parent bed9ef9 commit 24f36a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Step.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ class Step extends Component {

getData = () => this.props.data;

updateOffsetHeight = () =>
updateOffsetHeight = () =>{
const offsetHeight = this.getDOMNode().offsetHeight;
this.setState({
offsetHeight: this.getDOMNode().offsetHeight,
offsetHeight,
});
return offsetHeight;
}

enter = direction => this.setState({ state: 'enter', direction });
exit = direction => this.setState({ state: 'exit', direction });
Expand Down

0 comments on commit 24f36a3

Please sign in to comment.