Browse Source

Clean up

pull/5561/head
Thomas Kaul 3 months ago
parent
commit
239ed06564
  1. 8
      libs/ui/src/lib/tags-selector/tags-selector.component.ts

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

@ -136,15 +136,15 @@ export class GfTagsSelectorComponent
this.updateFilters(); this.updateFilters();
} }
public registerOnChange(fn: (value: Tag[]) => void): void { public registerOnChange(fn: (value: Tag[]) => void) {
this.onChange = fn; this.onChange = fn;
} }
public registerOnTouched(fn: () => void): void { public registerOnTouched(fn: () => void) {
this.onTouched = fn; this.onTouched = fn;
} }
public setDisabledState(isDisabled: boolean): void { public setDisabledState(isDisabled: boolean) {
if (isDisabled) { if (isDisabled) {
this.tagInputControl.disable(); this.tagInputControl.disable();
} else { } else {
@ -152,7 +152,7 @@ export class GfTagsSelectorComponent
} }
} }
public writeValue(value: Tag[]): void { public writeValue(value: Tag[]) {
this.tagsSelected.set(value || []); this.tagsSelected.set(value || []);
this.updateFilters(); this.updateFilters();
} }

Loading…
Cancel
Save