diff --git a/client/components/UI/Modal/Modal.tsx b/client/components/UI/Modal/Modal.tsx index 6fae2b6..f1e496d 100644 --- a/client/components/UI/Modal/Modal.tsx +++ b/client/components/UI/Modal/Modal.tsx @@ -38,10 +38,10 @@ export function Modal({ }; useEffect(() => { + ref.current.showModal(); if (refInner.current) { refInner.current.scrollTo(0, 0); } - ref.current.showModal(); (document.activeElement as HTMLElement).blur(); }, []);