Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The menu toggle button does not work on mobile when using Angular #15

Open
mhalttu opened this issue Aug 7, 2017 · 1 comment
Open

Comments

@mhalttu
Copy link

mhalttu commented Aug 7, 2017

When the screen is small, you see the "hamburger button" to toggle the sidebar visibility. In my Angular app, nothing happens when I tap the button. There are no errors in the console either - the button simply does not do anything.

Do you have any hints how to fix this?

@mhalttu
Copy link
Author

mhalttu commented Aug 7, 2017

I was able to get a bit further using the instructions at https://stackoverflow.com/questions/14741988/twitter-bootstrap-navbar-with-angularjs-collapse-not-functioning

<button type="button" class="navbar-toggle collapsed" (click)="toggleCollapse()" aria-expanded="false">

...

<div id="navbar" class="navbar-collapse" [class.collapse]="isCollapsed">

Tapping the button shows the menu now, but all the dropdown-toggle elements are also collapsed. If I tap them, they don't expand but simply act as links to "#". I don't want the dropdown elements collapsed in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant