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.

Dropdowns not closed

See original GitHub issue

Dropdowns 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:closed
  • Created 6 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
tmorehousecommented, Apr 25, 2017

I’ve created a fiddle https://jsfiddle.net/tmorehouse/4gx1jsjk/ that can be played with, which reproduces the issue. (note: updated fiddle link)

1reaction
tmorehousecommented, Apr 26, 2017

#290 fixes the dropdown not closing on click of <router-link>, But doesn’t address disabled router-links.

To get around disabled not working, you can switch from to="/bar" to href="#/bar" and disabled route dropdown-items will be truly disabled as expected (when using hash mode in vue-router)

Read more comments on GitHub >

github_iconTop 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 >

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