Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Bootstrap menu not collapsing #846

Closed
tigerwil opened this issue Apr 6, 2017 · 6 comments
Closed

Bootstrap menu not collapsing #846

tigerwil opened this issue Apr 6, 2017 · 6 comments

Comments

@tigerwil
Copy link

tigerwil commented Apr 6, 2017

The bootstrap "hamburger" menu is not collapsing in some frameworks..

@Kevenvz
Copy link
Contributor

Kevenvz commented Apr 7, 2017

Can you please specify which template(s)?

@tigerwil
Copy link
Author

tigerwil commented Apr 7, 2017

When generating an ASP.NET Core SPA application using Yeoman (Version 0.9.0)
yo aspnetcore-spa

The Bootstrap "hamburger" menu does not collapse when window is resized for the following templates:
-Knockout
-React
-Vue

The menu works fine in these templates:
Angular
Aurelia
React + Redux

Also is there a fix for the invalid html generated within the Angular template
<title></title><style>...

@SteveSandersonMS
Copy link
Member

Thanks for reporting this! The issue was just that we were missing import statements for the bootstrap JS in the boot-client files. You can fix it in your own app by adding the line as in this commit: 5dc4761

@tigerwil
Copy link
Author

tigerwil commented Apr 7, 2017 via email

@SteveSandersonMS
Copy link
Member

@tigerwil Make sure you're running in development mode, or run webpack manually to rebuild the client-side assets. Adding that line is certainly enough to make it work when I tried.

@tigerwil
Copy link
Author

tigerwil commented Apr 7, 2017 via email

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

No branches or pull requests

3 participants