Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Commit

Permalink
fix(Collapse): Set final height in onEntered callback (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylealwyn authored Mar 21, 2019
1 parent eb24f79 commit 63115c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Collapse/Collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export default class Collapse extends Component {
};

onEntered = (node, isAppearing) => {
this.setState({ height: node.scrollHeight });
this.props.onEntered(node, isAppearing);
};

Expand Down

0 comments on commit 63115c1

Please sign in to comment.