Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: Giancarlo Buomprisco <[email protected]>
  • Loading branch information
marob and Gbuomprisco authored Aug 10, 2020
1 parent 03875e1 commit d9840b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/components/dropdown/tag-input-dropdown.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {

// rx
import { Observable } from 'rxjs';
import { filter, first, debounceTime } from 'rxjs/operators';
import { filter, first, debounceTime, distinctUntilChanged } from 'rxjs/operators';

import { Ng2Dropdown, Ng2MenuItem } from 'ng2-material-dropdown';
import { defaults } from '../../defaults';
Expand Down Expand Up @@ -172,6 +172,7 @@ export class TagInputDropdown implements AfterViewInit {
this.tagInput.onTextChange
.asObservable()
.pipe(
distinctUntilChanged(),
debounceTime(DEBOUNCE_TIME),
filter((value: string) => {
if (KEEP_OPEN === false) {
Expand Down

0 comments on commit d9840b9

Please sign in to comment.