Accordion - Remove smooth scrolling

It is distracting and unlike normal anchor scroll
This commit is contained in:
2020-10-26 12:37:28 +05:30
parent 4cf46e250e
commit 0f24e566be
+1 -1
View File
@@ -27,7 +27,7 @@ const Accordion = ({ children, title = "More" }) => {
}
// 4. and scroll into view and focus
targetElement.focus();
targetElement.scrollIntoView({ behavior: "smooth", block: "center" });
targetElement.scrollIntoView({ block: "center" });
if ("scrollRestoration" in history) {
history.scrollRestoration = "auto";
}