diff --git a/src/components/Accordion/Item.tsx b/src/components/Accordion/Item.tsx index f18eeae2..1d478382 100644 --- a/src/components/Accordion/Item.tsx +++ b/src/components/Accordion/Item.tsx @@ -59,7 +59,10 @@ const AccordionItem = ({ if (!detailsRef.current.hasAttribute("open")) { // Push to end of queue to read updated position and scroll to it setTimeout(() => { - detailsRef.current.scrollIntoView({ behavior: "smooth" }); + detailsRef.current.scrollIntoView({ + behavior: "smooth", + block: "nearest", + }); }); }