Update breaks icarus sub menu

Post Reply
Posts: 1
Joined: 22 Jul 2016, 15:45

15 Nov 2016, 12:05

I have a problem with icarus template menu

Whenever i try to update element around icarus menu (form) it removes events on sub menus, so they cannot be closed or opened.

example code. After pressing test button menu stops working.

Code: Select all

<h:form id="menuform">
  <pi:menu widgetVar="appMenu">
    <p:submenu label="Tasks" icon="fa fa-tasks" >
      <p:menuitem value="Active" icon="fa fa-tasks" />
  <p:commandButton value="test" update="menuform"></p:commandButton>
I fixed it by changing layout.js bindEvents to

Code: Select all

bindEvents: function() {        
        var $this = this;
        this.sidebarNav.nanoScroller({flash: true});
        this.slimToggleButton.on('click', function(e) {
        //TODO find a better way to allow update
        this.menulinks = $('a.menuLink');
        this.menulinks.on('click',function(e) {
I know its not the right way to fix it, but this is working for me, at least for now.

Post Reply

Return to “Icarus”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest