AdminLTE v4.0.0-rc7 Release Notes
Highlights
This release delivers significant JavaScript refactors to the layout and push menu plugins, fixes several bugs affecting print, pagination, modals, and animations, and updates all dependencies to their latest semver-compatible versions.
Bug Fixes
- Print layout: Sidebar and main content are now both visible in browser print preview (#5982, PR #5996 by @herley-shaori)
- Pagination border-radius: Synced
_bootstrap-variables.scsscalc syntax with Bootstrap 5.3, fixing grouped pagination buttons showing rounded corners on all sides (#5951, reported by @Kneemund) - Escape key & modals:
handleEscapeKey()no longer bypasses Bootstrap 5'skeyboard: falseoption on modals (#5993, reported by @braytac) - slideDown/slideUp animation: Fixed unreliable
setTimeoutordering when duration is 0, which caused sidebar treeview instant-open to fail (#5964, PR by @Kneemund) - CSS lint: Fixed property order in print layout rules (#5997, reported by @lfiorini)
Refactors
-
Layout transition handling (#5956 by @dfsmania):
- Fixed broken
holdTransitiontimer (local variable promoted to instance property) - Removed duplicate
resizeevent listeners registered on every call - Consolidated layout initialization to
layout.ts(removed duplication fromadminlte.ts) - Moved
app-loadedclass application to layout Data API section
- Fixed broken
-
Push menu plugin overhaul (#5954 by @dfsmania):
- Single
PushMenuinstance instead of creating new instances per event handler - Proper separation of
setupSidebarBreakPoint()andupdateStateByResponsiveLogic() sidebar-openclass only added on mobile viewports (aligns with v3 behavior)- Configuration now readable from data attributes on sidebar element
- Removed unused
menusClose()method and dead constants
- Single
Improvements
- Login/register box width: Increased from 360px to 400px for better form readability (#5963 by @dfsmania)
- TypeScript compilation: Added
removeComments: truetotsconfig.json, reducing unminifiedadminlte.jsby ~15% (#5953 by @dfsmania)
Dependencies
Updated all packages to latest semver-compatible versions:
@astrojs/check0.9.7,@astrojs/mdx4.3.13@typescript-eslint/*8.57.0astro5.18.0,autoprefixer10.4.27eslint9.39.4,eslint-plugin-astro1.6.0fs-extra11.3.4,nodemon3.1.14postcss8.5.8,prettier3.8.1rimraf6.1.3,rollup4.59.0sass1.97.3,terser5.46.0
Breaking Changes
- Sidebar persistence is now opt-in:
enablePersistencedefaults tofalse(wastrue). To restore the previous behavior where sidebar state is remembered across page loads, adddata-enable-persistence="true"to your sidebar element:<aside class="app-sidebar" data-enable-persistence="true"></aside>
Contributors
Thank you to everyone who contributed to this release:
- @dfsmania (Diego Smania) — layout refactor, push menu refactor, login box width, tsconfig cleanup
- @herley-shaori (Herley) — print layout fix
- @Kneemund (Moritz Mechelk) — pagination bug report, slideDown/slideUp fix
- @braytac — escape key modal bug report
- @lfiorini — CSS lint issue report