1 Reply Latest reply on Nov 17, 2015 12:34 PM by Jose Miguel Barone

    Bootstrap dropdown navbar

    Jose Miguel Barone Newbie

      Hi.

      I'm using an errai template with boostrap to create the application navigation bar.

      All works right ... except that the click on the dropdown ítems don't close / hide the dropdown menu.

       

      The boostrap samples works, so apparently it's something with errai UI.

       

      Anyone have experiencied this behaviour?

      Thanks.

        • 1. Re: Bootstrap dropdown navbar
          Jose Miguel Barone Newbie

          The problem is in TransitionAnchor.

           

          In the onClick event it stops the propagation and then bootstrap don't receive the click event to close the dropdown menu.

           

           

            @Override

             public void onClick(ClickEvent event) {

               if (isEnabled())

                 navigation.goTo(toPageWidgetType, this.state);

           

              event.stopPropagation();

               event.preventDefault();

             }

           

          So, if someone in Errai can confirm this ...