Ensure bottom of page is visible while navigating

This commit is contained in:
Karina Kwiatek 2023-03-05 19:23:42 +01:00
parent 1aed44dd3d
commit 9a7dedcafc
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export default class extends Controller {
if (target.dataset.navigationTarget == "traversable") {
this.currentTarget.dataset.navigationTarget = "traversable";
target.dataset.navigationTarget = "traversable current";
target.scrollIntoView(false);
target.scrollIntoView({ block: "center", inline: "center" });
}
}
}