diff --git a/docs/auto-height.tsx b/docs/auto-height.tsx index f3ed554..928526e 100644 --- a/docs/auto-height.tsx +++ b/docs/auto-height.tsx @@ -11,6 +11,8 @@ const AutoHeight = ({ children, ...props }) => { }); resizeObserver.observe(contentDiv.current); + + return () => resizeObserver.disconnect() }, []); return (