mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 07:19:08 +01:00
Ensure bottom of page is visible while navigating
This commit is contained in:
parent
1aed44dd3d
commit
9a7dedcafc
1 changed files with 1 additions and 1 deletions
|
@ -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" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue