Skip to content

BDropdownForm formClass doesn't work with string and Array<string> value #2633

@slaweet

Description

@slaweet

Describe the bug

BDropdownForm formClass prop only accepts Object way of specifying class in Vue.

    <b-dropdown-form :form-class="{ 'bg-warning': true }"
      >Only this bg-warning works</b-dropdown-form
    >
    <b-dropdown-form :form-class="['bg-warning']"
      >This bg-warning doesn't work</b-dropdown-form
    >
    <b-dropdown-form form-class="bg-warning"
      >This bg-warning doesn't work</b-dropdown-form
    >

Reproduction

https://bootstra-vue-next-template-aekt1xrs.stackblitz.io

Used Package Manager

yarn

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions