yalabot / angular-foundation

http://pineconellc.github.io/angular-foundation/
Other
1.05k stars 267 forks source link

Prevent Default on Topbar hasDropdown Click #186

Open estudiooka opened 9 years ago

estudiooka commented 9 years ago

I was having some issues with the responsive menu and hasDropdown links. It would change the location when should only chance the menu.

I added event.preventDefault() ; on line 2836 for the hasDropdown directive to fix the problem

            $link.bind('click', function(event){
                topBar.forward(event);
               event.preventDefault();
            });

does it make sense ?

fabianrios commented 9 years ago

I got a problem if use a navigation with hasDropdown links inside a offset canvas the submenu doesn't show up it just close all the menu, any suggestions?