b-dropdown-item with 'to' prop always 'active'
See original GitHub issueIn my project, I have the exact same navbar as here: https://jsfiddle.net/6boedp9t/
The dropdown items are active and I can’t make them inactive. :active="false"
doesn’t change anything. I have no idea why, since the fiddle doesn’t reproduce the problem. Any idea?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Dropdown | Components - BootstrapVue
Turn your dropdown menu into a drop-right menu by setting the dropright prop. Or, turn it into a drop-left menu by setting the...
Read more >Dynamically render Bootstrap Vue Dropdown elements
I would like to dynamically render different elements: item, title, and divider. How can I do this? So what I want to achieve...
Read more >Dropdown | Buefy
While it appear as a modal for tablet and smartphones, Dropdowns with hoverable prop won't change it's behavior to avoid any malfunction with...
Read more >Dropdowns | React-Bootstrap
On the other hand, Bootstrap's dropdowns are designed to more generic and ... Provide a title prop and some <DropdownItem> s and you're...
Read more >Vue-Multiselect | Vue Select Library
:close-on-select="false" – the dropdown stays open after selecting an option; :show-labels="false" – the highlighted option doesn't have a label on it. Single ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Bootstrap-Vue doesn’t directly apply the
active
class (unless you are usingv-b-scrollspy
), but Vue-Router is responsible for placing the active class based on the pages URL and the machting scheme of the route to the URL.Try adding the router-link ‘exact’ prop to your dropdown items (https://bootstrap-vue.js.org/docs/reference/router-links)
Thank you, I didn’t know about this feature of vue-router. All that was missing was the
exact
prop.