Skip to content

Commit

Permalink
release(0.1.8): release 🎉
Browse files Browse the repository at this point in the history
firing appropriate tagAdded and tagRemoved events
  • Loading branch information
AhsanAyaz committed Dec 21, 2019
1 parent 3fbf936 commit 86c6fc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/angular-tags-input/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion projects/angular-tags-input/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iomechs/angular-tags-input",
"version": "0.1.7",
"version": "0.1.8",
"peerDependencies": {
"@angular/common": "^8.2.11",
"@angular/core": "^8.2.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ export class DropdownComponent
if (changes.listItems && !changes.listItems.firstChange) {
// if the list items change, update the context items (because they're not automatically updated)
this.filterItems(this.inputVal, changes.listItems.currentValue);
this.populateItemsMap(changes.listItems ? changes.listItems.currentValue || this.listItems);
this.populateItemsMap(changes.listItems ? changes.listItems.currentValue : this.listItems);
}

if (
changes.inputVal && !changes.inputVal.firstChange
) {
// if the list items change, update the context items (because they're not automatically updated)
this.filterItems(changes.inputVal.currentValue);
this.populateItemsMap(changes.listItems ? changes.listItems.currentValue || this.listItems);
this.populateItemsMap(changes.listItems ? changes.listItems.currentValue : this.listItems);
}
}

Expand Down

0 comments on commit 86c6fc0

Please sign in to comment.