question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sidebar treeview menu opened and reclosed automatically

See original GitHub issue

The issue was also reported in issue https://github.com/almasaeed2010/AdminLTE/issues/1053

The issue was fixed in PR https://github.com/almasaeed2010/AdminLTE/pull/729

However, I saw the (supposed unworking) code was reintroduced in 2.3.3 release.

I manually changed and the problematic behavior is corrected.

This is the exact duplicate of PR https://github.com/almasaeed2010/AdminLTE/pull/1001

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
JonLevcommented, May 18, 2017

Hi, I want to use this great repo, but with turbolinks for performances and I had the same problem as above. After reading different issue raised in this repo, I finally found that:

  • if you apply what you can found here (issue 563) it attaches the listener twice because of double call of $.AdminLTE.pushMenu.activate() and $.AdminLTE.layout.activate() that ends on the result above. Then if you change view without refreshing the page, turbolinks make quicker application of assets and remove one of these listener that ends on the perfect result.
  • if you remove the if (options.sidebarPushMenu) so you solve the issue of when you refresh the page, but then on a turbolinks load, it removes this single event and don’t apply the prevent default so the button become a simple link to the same page.

It seems the issue happen for all collapsable buttons. So I wonder if we can still make this work (so close for making this work for good). @almasaeed2010 any idea?

1reaction
abonafinacommented, Sep 15, 2016

good afternoon I have the latest version and still have the same problem, by clicking on the menu tree it opens and closes without reason

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Close Sidebar menu dropdown when the user opens ...
What I want to do is in sidebar when dropdown is opened and user wants to open second dropdown the first one closes...
Read more >
AdminLTE 3 expend menu doesn't close/collapsed when ...
Right now all menu items are opening one by one and they can only be closed by clicking on the item again. any...
Read more >
Main Sidebar Component | AdminLTE 3 Documentation
Main Sidebar Component. The sidebar used in this page to the left provides an example of what your sidebar would look like. Construction...
Read more >
How to Open and Close the Sidebar in Angular ... - Syncfusion
Opening and closing the Sidebar can be achieved with built-in public methods. show() : Method to open the Sidebar. hide() : Method to...
Read more >
How To Create a Collapsed Sidebar - W3Schools
How TO - Collapse Sidebar. ❮ Previous Next ❯. Learn how to create a collapsible sidebar menu. ... Click on the button to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found