Dropdowns not closed
See original GitHub issueDropdowns are not closed if dropdown item with ‘to’ properties are used:
<b-dropdown text="Dropdown Button" variant="success" class="m-md-2">
<b-dropdown-item to="#">Not closed after click</b-dropdown-item>
<b-dropdown-item to="/real/uri">Not closed after click</b-dropdown-item>
<b-dropdown-item href="/some/link">Closed after click</b-dropdown-item>
</b-dropdown>
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
Avoid dropdown menu close on click inside - Stack Overflow
By default, the dropdown menu is closed when clicking inside or outside the dropdown menu. You can use the autoClose option to change...
Read more >Navbar dropdown menus not closing at click
I'm looking for an API to close dropdown menu with animation. The problem is probably because you have system animations turned off.
Read more >Dropdown menus not closing - WordPress.org
There is an issue with the menus: sometimes when the user opens a menu, it doesn't close automatically when the mouse leaves. It...
Read more >Dropdown menu is not collapsing - Power Platform Community
Huge bug that needs a hotfix asap: dropdown menus are not closing after you select an item. The items remain open and continue...
Read more >Dropdowns - Bootstrap
For this reason, Bootstrap does not expect (nor automatically add) any of the ... .dropdown-item elements using the cursor keys and close the...
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
I’ve created a fiddle https://jsfiddle.net/tmorehouse/4gx1jsjk/ that can be played with, which reproduces the issue. (note: updated fiddle link)
#290 fixes the dropdown not closing on click of
<router-link>
, But doesn’t addressdisabled
router-links.To get around
disabled
not working, you can switch fromto="/bar"
tohref="#/bar"
and disabled route dropdown-items will be truly disabled as expected (when usinghash
mode in vue-router)