Skip to content

Commit 204dc52

Browse files
committed
fix: Ensure there are no duplicates of labelID and ID
Signed-off-by: Akshat Patel <[email protected]>
1 parent ad38b09 commit 204dc52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/combobox/combobox.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
256256
return this._clearSelectionAria.value;
257257
}
258258
static comboBoxCount = 0;
259-
@Input() id = `dropdown-${++ComboBox.comboBoxCount}`;
260-
@Input() labelId = `dropdown-label-${ComboBox.comboBoxCount}`;
259+
@Input() id = `dropdown-${ComboBox.comboBoxCount++}`;
260+
@Input() labelId = `dropdown-label-${ComboBox.comboBoxCount++}`;
261261
/**
262262
* List of items to fill the content with.
263263
*

0 commit comments

Comments
 (0)