Skip to content

show() for b-dropdown appears to not work #3366

Closed
@nstuyvesant

Description

@nstuyvesant

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce the bug

<template lang='pug'>
div
  b-button(@click='loginShow') Show Dropdown
  b-dropdown(id='login-dropdown', ref='dropdown', text='Login')
    b-dropdown-item(to='/login') Login
    b-dropdown-item(to='/signup') Sign up
</template>

<script lang="ts">
import { Component, Vue, Prop } from 'vue-property-decorator';
import { BDropdown } from 'bootstrap-vue';

@Component
export default class Login extends Vue {

  private loginShow(e: any): void {
    const dropdown = this.$refs.dropdown as BDropdown;
    dropdown.show();
  }
}
</script>

Click on "Show Dropdown" button.

Expected behavior

Dropdown should appear.

Versions

Libraries:

  • BootstrapVue: 2.0.0-rc.20
  • Bootstrap: 4.3.1
  • Vue: 2.6.10

Environment:

  • Device: [Mac]
  • OS: [macOS Mojave]
  • Browser: [Safari]
  • Version: [12.1.1]

Demo link

See code above.

Additional context

Thought feat #1012 was supposed to enable the show() method.

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