fix(site): fix file tree click not scrolling to file section (#22924)

This commit is contained in:
david-fraley
2026-03-11 08:50:49 -05:00
committed by GitHub
parent 71b132b9e7
commit c7c789f9e4
@@ -66,6 +66,10 @@ export const TemplateFiles: FC<TemplateFilesProps> = ({
fileTree={fileTree}
onSelect={(path: string) => {
window.location.hash = path;
document.getElementById(path)?.scrollIntoView({
behavior: "smooth",
block: "start",
});
}}
Label={({ path, filename, isFolder }) => {
if (isFolder) {