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