mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-15 20:41:49 -05:00
update expanding container to trigger height check when any child changes
This commit is contained in:
@@ -19,7 +19,7 @@ function ExpandingContainer({ isExpanded, children }) {
|
||||
});
|
||||
useEffect(() => {
|
||||
setContentHeight(ref.current.scrollHeight);
|
||||
}, [setContentHeight]);
|
||||
}, [setContentHeight, children]);
|
||||
const height = isExpanded ? contentHeight : '0';
|
||||
return (
|
||||
<Container
|
||||
|
||||
Reference in New Issue
Block a user