Skip to content

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

Closed
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions