|
|
|
@ -5,12 +5,10 @@ import { |
|
|
|
Component, |
|
|
|
CUSTOM_ELEMENTS_SCHEMA, |
|
|
|
ElementRef, |
|
|
|
EventEmitter, |
|
|
|
Input, |
|
|
|
OnChanges, |
|
|
|
OnDestroy, |
|
|
|
OnInit, |
|
|
|
Output, |
|
|
|
signal, |
|
|
|
ViewChild |
|
|
|
} from '@angular/core'; |
|
|
|
@ -66,8 +64,6 @@ export class GfTagsSelectorComponent |
|
|
|
@Input() tags: Tag[]; |
|
|
|
@Input() tagsAvailable: Tag[]; |
|
|
|
|
|
|
|
@Output() tagsChanged = new EventEmitter<Tag[]>(); |
|
|
|
|
|
|
|
@ViewChild('tagInput') tagInput: ElementRef<HTMLInputElement>; |
|
|
|
|
|
|
|
public filteredOptions: Subject<Tag[]> = new BehaviorSubject([]); |
|
|
|
@ -115,7 +111,6 @@ export class GfTagsSelectorComponent |
|
|
|
}); |
|
|
|
|
|
|
|
const newTags = this.tagsSelected(); |
|
|
|
this.tagsChanged.emit(newTags); |
|
|
|
this.onChange(newTags); |
|
|
|
this.onTouched(); |
|
|
|
this.tagInput.nativeElement.value = ''; |
|
|
|
@ -130,7 +125,6 @@ export class GfTagsSelectorComponent |
|
|
|
}); |
|
|
|
|
|
|
|
const newTags = this.tagsSelected(); |
|
|
|
this.tagsChanged.emit(newTags); |
|
|
|
this.onChange(newTags); |
|
|
|
this.onTouched(); |
|
|
|
this.updateFilters(); |
|
|
|
|