question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Navbar is always collapsed

See original GitHub issue

Most certainly it’s an issue in my code but in this example, the navbar is always collapsed as noted by some other bootstrap 4 users.

	<div id="app">
		<b-navbar toggleable="sm" type="inverse" variant="inverse" fixed="top" sticky>
			<b-nav-toggle target="nav_collapse"></b-nav-toggle>

			<b-navbar-brand to="/">Navbar</b-navbar-brand>
			
			<b-collapse id="nav_collapse" is-nav>
				<b-nav is-nav-bar>
					<b-nav-item href="#">Link</b-nav-item>
					<b-nav-item href="#" disabled>Disabled</b-nav-item>
				</b-nav>

				<b-nav is-nav-bar class="ml-auto">
					<b-nav-item-dropdown text="Lang" right>
						<b-dropdown-item href="#">EN</b-dropdown-item>
						<b-dropdown-item href="#">ES</b-dropdown-item>
						<b-dropdown-item href="#">RU</b-dropdown-item>
						<b-dropdown-item href="#">FA</b-dropdown-item>
					</b-nav-item-dropdown>
				</b-nav>
			</b-collapse>
		</b-navbar>
		<div class="container pt-3 pb-3">
			<router-view></router-view>
		</div>
	</div>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
tmorehousecommented, Sep 11, 2017

Bootstrap-Vue v1.0.0.beta.x used the beta versdion of bootstrap CSS, not the alpha version.

You need bootstrap 4.0.0.-beta

0reactions
tmorehousecommented, Sep 25, 2017

It all depends on how you are building your project.

If you are not using a build system, you can use script and link tags to pull it in, or if you are using a build system, you need to bring them in as dependencies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is the Bootstrap Navbar always collapsed? [duplicate]
In Bootstrap 4, the navbar-expand* class is needed if you want the navbar to expand horizontally, otherwise it defaults to the mobile/collapsed ......
Read more >
Bootstrap 4 Navbar Always Collapsed on Codeply
New nav for Bootstrap 4 beta that is always collapsed like the mobile menu. How to always show the hamburger menu. Codeply example....
Read more >
How to make the navbar always collapsed in Bootstrap - Quora
One way would be using the CSS attribute “position: fixed;”. That will remove it from the flow of the page, and fix it...
Read more >
Navbar - Bootstrap
For navbars that always collapse, don't add any .navbar-expand class. Toggler. Navbar togglers are left-aligned by default, but should they follow a sibling ......
Read more >
Always collapsed navbar · Issue #4174 · react-bootstrap/react ...
Hi,. Upstream bootstrap supports having a navbar that is always collapsed. ... I didn't find a way to make react-bootstrap behave like the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found