From 0ceadc416aee3dd56ccdd70c35ebd24e500085cb Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Tue, 6 Sep 2022 10:37:31 +0200 Subject: [PATCH] Fix resetting dropdowns --- projects/common/components/input-elements/dropdown.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/components/input-elements/dropdown.component.ts b/projects/common/components/input-elements/dropdown.component.ts index ee33d1257..865074db8 100644 --- a/projects/common/components/input-elements/dropdown.component.ts +++ b/projects/common/components/input-elements/dropdown.component.ts @@ -19,7 +19,7 @@ import { FormElementComponent } from '../../directives/form-element-component.di {{$any(elementModel).label}} </mat-label> <mat-select [formControl]="elementFormControl" [value]="elementModel.value"> - <mat-option *ngIf="elementModel.allowUnset" value="" + <mat-option *ngIf="elementModel.allowUnset" [value]="null" [style.pointer-events]="elementModel.readOnly ? 'none' : 'unset'" (click)="$event.preventDefault()"> </mat-option> -- GitLab