From 6a221671fcbeec6c3c8dd350488039c860c2e777 Mon Sep 17 00:00:00 2001 From: Diamantis Tziotzios Date: Wed, 24 Apr 2024 11:03:24 +0300 Subject: [PATCH] minor fixes --- .../auto-complete/multiple/multiple-auto-complete.component.ts | 1 + .../app/library/rich-text-editor/rich-text-editor.component.ts | 2 +- .../components/form-field/form-field.component.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts index abad96f88..d87dbc8d4 100644 --- a/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts +++ b/dmp-frontend/src/app/library/auto-complete/multiple/multiple-auto-complete.component.ts @@ -333,6 +333,7 @@ export class MultipleAutoCompleteComponent extends _CustomComponentMixinBase imp writeValue(value: any): void { this.value = Array.isArray(value) ? value : null; // Update chips observable + this.autocompleteInput.nativeElement.value = ''; this._items = null; this.getSelectedItems(this.value); } diff --git a/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts b/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts index dcd42c862..4097f708a 100644 --- a/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts +++ b/dmp-frontend/src/app/library/rich-text-editor/rich-text-editor.component.ts @@ -8,7 +8,7 @@ import { Subscription } from "rxjs"; template: `
close diff --git a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts index 0b7f93b1d..7cf364498 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-form/components/form-field/form-field.component.ts @@ -164,7 +164,7 @@ export class DescriptionFormFieldComponent extends BaseComponent implements OnIn // } break; case DescriptionTemplateFieldType.CHECK_BOX: - if (this.propertiesFormGroup?.get(this.field.id).get('textValue').value == "false") this.propertiesFormGroup?.get(this.field.id).get('textValue').setValue(undefined); + this.propertiesFormGroup?.get(this.field.id).get('textValue').setValue(this.propertiesFormGroup?.get(this.field.id).get('textValue').value === 'true'); break; }