This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 2 years, 6 months ago.

Navbar automatically closing submenu


  • __dan
    Participant

    Posts: 2
    Member Reply #3998

    Hi-first please forgive as I am new to web app development. I’m using Metronic in an Angular SPA app. The main dashboard page is loaded into index.html with ui-router, and files are loaded with ocLazyLoad. The content area of the dashboard page is a nested view, e.g. when the user clicks a navbar link, the state changes to whatever nested view they click. Right now, when I click a main menu item in the navbar, it animates and displays the sub menu items, but then immediately hides the sub menu items (with no additional clicks). If I comment the <div ui-view></div> part of the dashboard template, the problem goes away (but then the content view is not rendered obviously).

    Any pointers?

    Demonstrated

    • This topic was modified 2 years, 6 months ago by  __dan.
    Sean
    Sean
    Keymaster

    Posts: 4472
    Support Staff Reply #4008

    Hi,

    I suspect you included/called layout.js and app.js or metronic.js scripts more than once. Please try to double check your code and make sure you followed the code from the original theme source.

    If you need any further help please let us know.

    Thanks

Tagged: 

You must be logged in to reply to this topic.