Skip to content

( bv::dropdown::show ) bvEvent is undefined in navbar ... #6197

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

Closed
ghost opened this issue Dec 14, 2020 · 0 comments · Fixed by #6198
Closed

( bv::dropdown::show ) bvEvent is undefined in navbar ... #6197

ghost opened this issue Dec 14, 2020 · 0 comments · Fixed by #6198

Comments

@ghost
Copy link

ghost commented Dec 14, 2020

Describe the bug

Opening the navbar dropdown should return the specific event from (bv::dropdown::show). Unfortunately the corresponding event is undfined ? I just updated vue-bootstrap from 2.20.1 to 2.21.0.

my code looks like this:

`

     this.$root.$on("bv::dropdown::show", bvEvt => {
      if (bvEvt.componentId === "menu-links") {
        var hamburger = document.querySelector(".hamburger");
        hamburger.classList.add("is-active");
      }

      if (bvEvt.componentId === "lang-links") {
        var caretText = document.querySelector('.toggle-text');
        caretText.classList.add('toggle-caret');
      }
    });`

Expected behavior

I expected to get the corresponding event to initialize further actions on the event.

Versions

Libraries:

  • BootstrapVue: 2.21.0
  • Nuxt 2.14.11

Environment:

  • Device: Desktop
  • OS: Windows
  • Browser: Chrome
  • Version: 87.0.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant