gentelella icon indicating copy to clipboard operation
gentelella copied to clipboard

Sidebar Dropdown Menu

Open vikyarifian opened this issue 6 years ago • 4 comments

How to make sidebar dropdown menu disappear when we click everywhere or click escape?

image

vikyarifian avatar Apr 14 '20 02:04 vikyarifian

Hey @Vikyarifian Write a javascript function which onclick changes the display of that element to none

Hope this helps you

shivanandmanik avatar Jun 28 '20 11:06 shivanandmanik

Hi @theinfinitywritings Could you please be a bit more explicit? I have the same behavior: When loading the page, then the main menu item, which gets the attribute "active" is expanded. Thus each page starts with an expanded sub-menu, which is not intended. Any further clicks on this main menu item should show the submenu. A simple "display: none" of the submenu div is not required/sufficient?

DirkR avatar Jul 23 '20 09:07 DirkR

Hello @DirkR You can avoid this by changing the default display Make it display: none And use the js event onclick to display the menu tab on click onclick : style.display="block"

shivanandmanik avatar Jul 23 '20 09:07 shivanandmanik

Hi 👋 — closing this as part of a triage of the long-tail issue queue.

Gentelella has gone through a complete modernisation since this issue was opened. The current release (v2.2.0, April 2026) is essentially a different template under the same name:

  • Bootstrap 5.3.8 + Vite 8 build system (was Bootstrap 4 + Gulp)
  • jQuery completely removed — every script is vanilla JS modules
  • DataTables 2.x with native Bootstrap 5 styling (was DataTables 1.x + jQuery)
  • Sidebar fully rewritten with collapsed-state persistence across pages
  • Unified card / panel design tokens (--gt-radius-card, --gt-shadow-card, …)
  • Fresh dependency tree across the board (ESLint 10, Uppy 5, jsdom 29, ECharts tree-shaken −32 %, …)
  • Full HTML validity sweep, security headers, normalised <head> across all pages

If you're still hitting this exact issue on the current version, please open a fresh issue with the page where it reproduces, your browser, and steps to reproduce — we'll take a fresh look.

If your original report was a framework-integration question (Django, Laravel, Angular, .NET, Vue, etc.), those are best asked in that framework's community — Gentelella is a static HTML/CSS/JS template, so wiring it into a backend is the same as any static asset bundle.

Thanks for the original report. 🙏

— Closed during the v2.2.0 housekeeping pass.

puikinsh avatar Apr 23 '26 13:04 puikinsh