Skip to content

Commit

Permalink
Fix scrollIntoView
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jan 6, 2023
1 parent 7fd9635 commit f3c9db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/js/ra-doc-exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function slugify(text) {

function navigationFitScroll() {
var scrollIntoView = window.sessionStorage.getItem('scrollIntoView');
if (true || scrollIntoView !== 'false') {
if (scrollIntoView !== 'false') {
var activeMenu = document.querySelector('.sidenav li.active');
if (activeMenu) activeMenu.parentNode.scrollIntoView();
}
Expand Down

0 comments on commit f3c9db2

Please sign in to comment.