carbon-components-angular
carbon-components-angular copied to clipboard
Combobox/Dropdown id s not unique
When I use a combobox component together with a dropdown component on the same page, I systematically get a console warning Found 2 elements with non-unique id #dropdown-....
Seems like the problem comes from id definition being identical in Dropdown and ComboBox classes
@Input() id = `dropdown-${Dropdown.dropdownCount++}`;
and
@Input() id = `dropdown-${ComboBox.comboBoxCount++}`;