Skip to content

Using useChoicesDynamicStyling and cssPatch breaks the appearance  #45

@MikeAlhayek

Description

@MikeAlhayek

When I use the useChoicesDynamicStyling option along with cssPatch, that cssPatch is automatically get adjusted to 4 columns. Its like you either use useChoicesDynamicStyling or cssPatch but not both at the same time.

Here is my code

let menus = document.getElementsByClassName('content-picker');

for (let i = 0; i < menus.length; i++) {
    let menu = menus[i];
    var bsMenu = dashboardcode.BsMultiSelect(menu, {
        placeholder: menus[i].getAttribute('placeholder') || '',
        useChoicesDynamicStyling: true, 
        cssPatch: {
            choices: { columnCount: menu.getAttribute('data-column-count') || '1' },
        },
        useHighlighting: true
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions