carbon-components-angular icon indicating copy to clipboard operation
carbon-components-angular copied to clipboard

Combobox/Dropdown id s not unique

Open grenobnik opened this issue 4 years ago • 0 comments

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++}`;

grenobnik avatar Aug 20 '21 15:08 grenobnik