fix select (#133)
All checks were successful
Backend Build and Test / build (push) Successful in 3m9s
Backend Deploy / build (push) Successful in 20s

closes #117

Reviewed-on: #133
This commit was merged in pull request #133.
This commit is contained in:
2025-05-28 11:47:11 +02:00
parent 604b92b3b3
commit 9cbb8756d1
10 changed files with 52 additions and 13 deletions

View File

@@ -28,9 +28,9 @@
<div class="item" *ngIf="isAddMode || goalId != 0">
<label>Colour</label>
<select formControlName="color">
<option *ngFor="let color of possibleColors" [value]="color" [style.--background]="color">{{color}}</option>
</select>
<mat-select [(value)]="selectedColor" formControlName="color" [style.--color]="selectedColor">
<mat-option *ngFor="let color of possibleColors" [value]="color" [style.--background]="color">{{color}}</mat-option>
</mat-select>
</div>
<button type="button" [disabled]="!form.valid" (click)="submit()">