Skip to content

Commit

Permalink
fix(filter): possible dupes in filter (#212)
Browse files Browse the repository at this point in the history
* fixed possible dupes in filter

* fixed linting error
  • Loading branch information
linusbrolin authored and valorkin committed May 30, 2016
1 parent cf7f110 commit 7f4e9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export class GenericBehavior extends Behavior implements OptionsBehavior {
.filter((option:SelectItem) => {
return stripTags(option.text).match(query) &&
(this.actor.multiple === false ||
(this.actor.multiple === true && this.actor.active.indexOf(option) < 0));
(this.actor.multiple === true && this.actor.active.map((item: SelectItem) => item.id).indexOf(option.id) < 0));
});
this.actor.options = options;
if (this.actor.options.length > 0) {
Expand Down

0 comments on commit 7f4e9f6

Please sign in to comment.