Prime Community Forum

Wrong behavior on Icarus Active Menu selection

Wrong behavior on Icarus Active Menu selection

Posted: 12 Jun 2017, 14:23

by Jorge

Hi,

We bought the Icarus Template and we noted an wrong behavior on the active menu link.

The problem is when you select an menu item in the expanded menu let's say Components -> Forms, then you retract the menu so it shows only icons without the text, then you click in another option lets say Dashboard (with the menu retracted). The menu will collapse and the active link remains in Components -> Forms instead of Dashboard.

Re: Wrong behavior on Icarus Active Menu selection

Posted: 13 Jun 2017, 14:38

by Jorge

Hi @Aragorn.

The code you mention is a bit different from the one we have here (we are in the version 1.1 of Icarus Template). I manage to find out the code you asked to remove (setTimeout). Now it is working, although not very smooth mainly with the submenu itens (a rapid close behavior for the sub items make it a bit strange). We can live with that tough, just a heads up to you guys.

Here is the code of the bindEvents in the layout.js file that we have (with the code commented as you asked):

Re: Wrong behavior on Icarus Active Menu selection

Posted: 27 Jun 2017, 14:33

by Jorge

Hi @aragorn

Thank you for your reply again.

Please note that the version of the layout.js file we have in the bind section (in my previous post, it is the complete code for the bind) does not have such binding this.menulinks.off('click.menuLinks').on('click.menuLinks',function(e), therefore I can't change what you asked.

I can't also add this whole section also because I believe it is not complete right (you added a "...." before the close curly braces of the function)?

So would you provide a link where we can download such updated file please?

As I mentioned before we are in Icarus 1.1 version.

Thank you.

Re: Wrong behavior on Icarus Active Menu selection

Posted: 29 Jun 2017, 08:06

by aragorn

I attached the above codes according to 1.1.1 version.

So would you provide a link where we can download such updated file please?