From ce909093c03ba6b61f7a78a1da27520677963373 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 18 Feb 2020 14:36:18 -0500 Subject: [PATCH] update expanding container to trigger height check when any child changes --- .../src/components/CollapsibleSection/ExpandingContainer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/components/CollapsibleSection/ExpandingContainer.jsx b/awx/ui_next/src/components/CollapsibleSection/ExpandingContainer.jsx index 35804d324d..b89ce94d7b 100644 --- a/awx/ui_next/src/components/CollapsibleSection/ExpandingContainer.jsx +++ b/awx/ui_next/src/components/CollapsibleSection/ExpandingContainer.jsx @@ -19,7 +19,7 @@ function ExpandingContainer({ isExpanded, children }) { }); useEffect(() => { setContentHeight(ref.current.scrollHeight); - }, [setContentHeight]); + }, [setContentHeight, children]); const height = isExpanded ? contentHeight : '0'; return (