#6797: Improve sidenav state handling before load
This commit is contained in:
@@ -93,6 +93,8 @@
|
|||||||
// rest of the content rendering. This prevents jumpy/glitchy behavior on page reloads.
|
// rest of the content rendering. This prevents jumpy/glitchy behavior on page reloads.
|
||||||
document.body.setAttribute('data-sidenav-pinned', '');
|
document.body.setAttribute('data-sidenav-pinned', '');
|
||||||
document.body.setAttribute('data-sidenav-show', '');
|
document.body.setAttribute('data-sidenav-show', '');
|
||||||
|
} else if (sideNavState.pinned === false) {
|
||||||
|
document.body.setAttribute('data-sidenav-hidden', '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user