AdminLTE
AdminLTE copied to clipboard
sidebar-collapse being overriden on load
<body class="layout-fixed sidebar-collapse">
after page load sidebar starts out collapsed but then toggles open
something in pushmenu isopening() ?? overriding after load
compiled latest v4-dev
Give some more details regarding to issue like code, images, video to solve issue
v4-dev (latest) npm install gulp compile edit dist/index.html and add sidebar-collapse to body
<body class="layout-fixed sidebar-collapse">
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-light">
https://user-images.githubusercontent.com/7809634/155884615-21e628b1-0073-44df-b4da-9554960ea357.mp4
follow up caused by Pushmenu-> addSidebaBreakPoint() calling expand() expand is removing bodyClass CLASS_NAME_SIDEBAR_COLLAPSE
PR #4131 seems to correct this while also allowing for the state to be remembered
is this issue still exist ?
i am not sure. If I remember correctly, I applied PR#4131 to my fork and it solved the problem for me. i have not updated the v4-dev code since then
fixed in https://github.com/ColorlibHQ/AdminLTE/commit/c84fedbff566f17fdffc536e82ae4cdd97da309b