Browse Source

refactor: remove tagsChanged output from tags selector component

pull/5666/head
jassu2244 1 month ago
parent
commit
0a999c9da9
  1. 6
      libs/ui/src/lib/tags-selector/tags-selector.component.ts

6
libs/ui/src/lib/tags-selector/tags-selector.component.ts

@ -5,12 +5,10 @@ import {
Component,
CUSTOM_ELEMENTS_SCHEMA,
ElementRef,
EventEmitter,
Input,
OnChanges,
OnDestroy,
OnInit,
Output,
signal,
ViewChild
} from '@angular/core';
@ -65,8 +63,6 @@ export class GfTagsSelectorComponent
@Input() readonly = false;
@Input() tagsAvailable: Tag[];
@Output() tagsChanged = new EventEmitter<Tag[]>();
@ViewChild('tagInput') tagInput: ElementRef<HTMLInputElement>;
public filteredOptions: Subject<Tag[]> = new BehaviorSubject([]);
@ -112,7 +108,6 @@ export class GfTagsSelectorComponent
});
const newTags = this.tagsSelected();
this.tagsChanged.emit(newTags);
this.onChange(newTags);
this.onTouched();
this.tagInput.nativeElement.value = '';
@ -127,7 +122,6 @@ export class GfTagsSelectorComponent
});
const newTags = this.tagsSelected();
this.tagsChanged.emit(newTags);
this.onChange(newTags);
this.onTouched();
this.updateFilters();

Loading…
Cancel
Save