mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 23:37:39 -02:30
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(() => {
|
useEffect(() => {
|
||||||
setContentHeight(ref.current.scrollHeight);
|
setContentHeight(ref.current.scrollHeight);
|
||||||
}, [setContentHeight]);
|
}, [setContentHeight, children]);
|
||||||
const height = isExpanded ? contentHeight : '0';
|
const height = isExpanded ? contentHeight : '0';
|
||||||
return (
|
return (
|
||||||
<Container
|
<Container
|
||||||
|
|||||||
Reference in New Issue
Block a user