1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

#6797: Improve sidenav state handling before load

This commit is contained in:
checktheroads
2021-08-01 11:12:07 -07:00
parent 261372289a
commit c3a75d98d4

View File

@ -93,6 +93,8 @@
// rest of the content rendering. This prevents jumpy/glitchy behavior on page reloads.
document.body.setAttribute('data-sidenav-pinned', '');
document.body.setAttribute('data-sidenav-show', '');
} else if (sideNavState.pinned === false) {
document.body.setAttribute('data-sidenav-hidden', '');
}
}
})();