From 63115c126359419cb9b97b2ffe0dc5c92e509023 Mon Sep 17 00:00:00 2001 From: Kyle Alwyn Date: Thu, 21 Mar 2019 15:04:03 -0700 Subject: [PATCH] fix(Collapse): Set final height in onEntered callback (#32) --- src/Collapse/Collapse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Collapse/Collapse.js b/src/Collapse/Collapse.js index 2ce8991..e33dfd3 100644 --- a/src/Collapse/Collapse.js +++ b/src/Collapse/Collapse.js @@ -85,6 +85,7 @@ export default class Collapse extends Component { }; onEntered = (node, isAppearing) => { + this.setState({ height: node.scrollHeight }); this.props.onEntered(node, isAppearing); };