AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

sidebar-collapse being overriden on load

Open cytech opened this issue 3 years ago • 3 comments

<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

cytech avatar Feb 11 '22 20:02 cytech

Give some more details regarding to issue like code, images, video to solve issue

danny007in avatar Feb 27 '22 09:02 danny007in

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

cytech avatar Feb 27 '22 13:02 cytech

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

cytech avatar May 10 '22 21:05 cytech

is this issue still exist ?

danny007in avatar Feb 05 '23 13:02 danny007in

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

cytech avatar Feb 06 '23 15:02 cytech

fixed in https://github.com/ColorlibHQ/AdminLTE/commit/c84fedbff566f17fdffc536e82ae4cdd97da309b

danny007in avatar Feb 06 '23 16:02 danny007in