Added DocWrapper and Link component to address link issues

This commit is contained in:
Lakshya Thakur
2020-10-24 18:32:45 +05:30
parent ebb35a0833
commit 8298755373
5 changed files with 60 additions and 8 deletions
+3 -3
View File
@@ -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" });
}
}