enterprise-wc icon indicating copy to clipboard operation
enterprise-wc copied to clipboard

IdsDropdown: set options with icon on the fly makes text drop to next line

Open fabiojpoli opened this issue 6 months ago • 0 comments

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 Screenshot 2024-08-20 at 11 40 00 PM

fabiojpoli avatar Aug 21 '24 04:08 fabiojpoli