mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 13:52:50 +00:00
Added DocWrapper and Link component to address link issues
This commit is contained in:
@@ -24,10 +24,10 @@ const Accordion = ({ children, title = "More" }) => {
|
||||
if (!detailsElement.open) {
|
||||
// 3. Then open it
|
||||
detailsElement.open = true;
|
||||
// 4. and scroll into view and focus
|
||||
targetElement.focus();
|
||||
targetElement.scrollIntoView({ behavior: "smooth", block: "center" });
|
||||
}
|
||||
// 4. and scroll into view and focus
|
||||
targetElement.focus();
|
||||
targetElement.scrollIntoView({ behavior: "smooth", block: "center" });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user