enterprise-wc
enterprise-wc copied to clipboard
IdsDropdown: set options with icon on the fly makes text drop to next line
Describe the bug When set dropdown options with icons on the fly, the text drop the next line instead of stay on the same line as the icon. Works good when the options are static set initially.
To Reproduce
Steps to reproduce the behavior: Like on the documentation example:
<ids-dropdown id="dropdown-1" label="Dropdown">
<ids-list-box>
</ids-list-box>
</ids-dropdown>
const dropdownAsync = document.querySelector('#dropdown-1');
dropdownAsync.beforeShow = async function beforeShow() {
return [{value: '1', label: 'User 1', icon: 'project', tooltip: 'Full User Name'}];
});
Expected behavior Show the options with icons and text on the same line.
Version 1.4.2
Screenshots