Skip to content

Commit

Permalink
fix: keep the auto generated labelID and ID the same index
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Patel <[email protected]>
  • Loading branch information
Akshat55 committed Jun 12, 2024
1 parent baaeb17 commit ad38b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/combobox/combobox.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
return this._clearSelectionAria.value;
}
static comboBoxCount = 0;
@Input() id = `dropdown-${ComboBox.comboBoxCount++}`;
@Input() id = `dropdown-${++ComboBox.comboBoxCount}`;
@Input() labelId = `dropdown-label-${ComboBox.comboBoxCount}`;
/**
* List of items to fill the content with.
Expand Down

0 comments on commit ad38b09

Please sign in to comment.