Skip to content

Commit

Permalink
Merge e158bb4 into bb2a13e
Browse files Browse the repository at this point in the history
  • Loading branch information
varnastadeus committed Jul 4, 2019
2 parents bb2a13e + e158bb4 commit ea2c7f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ng-select/items-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class ItemsList {
label: isDefined(label) ? label.toString() : '',
value: value,
disabled: item.disabled,
htmlId: newId(),
htmlId: `${this._ngSelect.dropdownId}-${index}`,
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/ng-select/ng-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export class NgSelectComponent implements OnDestroy, OnChanges, AfterViewInit, C
return this.trackByFn(item.value);
}

return null;
return item.htmlId;
};

get showAddTag() {
Expand Down

0 comments on commit ea2c7f7

Please sign in to comment.