Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown on navbar is disappearing slowly #6306

Closed
jamipo201 opened this issue Jan 9, 2021 · 1 comment · Fixed by #6367
Closed

Dropdown on navbar is disappearing slowly #6306

jamipo201 opened this issue Jan 9, 2021 · 1 comment · Fixed by #6367

Comments

@jamipo201
Copy link

jamipo201 commented Jan 9, 2021

Describe the bug

When dropdown is on navbar, it delays to disappear when you click outside of the dropdown items when toggled.

Clicking outside of dropdown button when toggled should dismiss the items immediately but it delays few seconds and then disappearing.

Steps to reproduce the bug

<div>
  <b-navbar type="dark" variant="dark">
    <b-navbar-nav>
      <b-nav-item href="#">Home</b-nav-item>

      <!-- Navbar dropdowns -->
      <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-item-dropdown text="User" right>
        <b-dropdown-item href="#">Account</b-dropdown-item>
        <b-dropdown-item href="#">Settings</b-dropdown-item>
      </b-nav-item-dropdown>
    </b-navbar-nav>
  </b-navbar>
</div>
  1. Click dropdown.
  2. When toggled, clicking outside of element dismisses items slowly.

Expected behavior

It should dismiss dropdown items immediately when you click outside of the element.

Versions

Libraries:

  • BootstrapVue: 2.21.2
  • Bootstrap: 4.5.3
  • Vue: 2.6.12

Environment:

  • Device: Mac
  • OS: macOS Bigsur
  • Browser: Chrome
  • Version: 87.0.4280.88
@Hiws
Copy link
Member

Hiws commented Jan 9, 2021

Looks like this bug was introduced in version 2.19.0, and is present in all later versions.
Version 2.18.0 does not have this issue.

@jacobmllr95 jacobmllr95 added this to To do in v2.22.0 via automation Jan 27, 2021
v2.22.0 automation moved this from To do to Done Jan 27, 2021
jacobmllr95 added a commit that referenced this issue Jan 27, 2021
…ch devices (closes #6306) (#6367)

* fixes #6306

* Update dropdown.js

Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v2.22.0
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants