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
});
}