Skip to content

Commit ad38b09

Browse files
committed
fix: keep the auto generated labelID and ID the same index
Signed-off-by: Akshat Patel <[email protected]>
1 parent baaeb17 commit ad38b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combobox/combobox.component.ts

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

0 commit comments

Comments
 (0)