Fix: collapsing group should not prevent resize / stats (#2053)

pull/2057/head
shamoon 8 months ago committed by GitHub
parent 770dabdf1c
commit 63a47b1ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,6 +49,7 @@ export default function ServicesGroup({ group, services, layout, fiveColumns, di
beforeEnter={() => {
panel.current.style.height = `0px`;
setTimeout(() => {panel.current.style.height = `${panel.current.scrollHeight}px`}, 1);
setTimeout(() => {panel.current.style.height = 'auto'}, 150); // animation is 150ms
}}
>
<Disclosure.Panel className="transition-all overflow-hidden duration-300 ease-out" ref={panel} static>

Loading…
Cancel
Save