Fix: Product Ledger autocomplete not working.

This commit is contained in:
2026-09-17 10:58:17 +00:00
parent 79cdf83c9e
commit c32db91535
4 changed files with 12 additions and 10 deletions
@@ -26,20 +26,16 @@
<div class="row-container">
<mat-form-field class="flex-auto basis-4-5">
<mat-label>Product</mat-label>
<input
type="text"
matInput
#productElement
[matAutocomplete]="auto"
[formField]="form.product"
autocomplete="off"
/>
<input type="text" matInput [matAutocomplete]="auto" [formField]="form.product" autocomplete="off" />
<mat-autocomplete
#auto="matAutocomplete"
autoActiveFirstOption
[displayWith]="displayFn"
(optionSelected)="selected($event)"
>
@for (product of products(); track product.id) {
<mat-option [value]="product">{{ product.name }}</mat-option>
}
</mat-autocomplete>
</mat-form-field>
<button mat-raised-button type="submit" class="flex-auto basis-1-5" color="primary">Show</button>