1 Reply Latest reply on Nov 17, 2015 12:34 PM by jmbarone

    Bootstrap dropdown navbar

    jmbarone

      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
          jmbarone

          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 ...