We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd99aef commit 72edea9Copy full SHA for 72edea9
1 file changed
src/generic/expandable-card/ExpandableCard.tsx
@@ -46,13 +46,6 @@ export const ExpandableCard = ({
46
return () => resizeObserver.disconnect();
47
}, [maxHeight, children]);
48
49
- useEffect(() => {
50
- if (contentRef.current) {
51
- const { scrollHeight } = contentRef.current;
52
- setNeedsExpansion(scrollHeight > maxHeight);
53
- }
54
- }, [children, maxHeight]);
55
-
56
return (
57
<div>
58
<div
0 commit comments