Revert "PR U-11: FluentCombobox for booking-text autocomplete"

This reverts commit ceef2c162f.
This commit is contained in:
Claudio Schaad 2026-07-06 17:41:58 +02:00
parent ceef2c162f
commit 2522274928
4 changed files with 14 additions and 19 deletions

View file

@ -49,13 +49,13 @@
</td> </td>
<td> <td>
<div class="text-column"> <div class="text-column">
<FluentCombobox TOption="string" <input list="texts" @bind="@transaction.Text" placeholder="Type or select..."/>
Items="@sortedBookingTexts" <datalist id="texts">
OptionText="@(t => t)" @foreach (var text in bookingTexts.OrderBy(t => t))
OptionValue="@(t => t)" {
@bind-Value="@transaction.Text" <option value="@text"></option>
Autocomplete="ComboboxAutocomplete.Both" }
Placeholder="Text…"/> </datalist>
</div> </div>
</td> </td>
<td> <td>

View file

@ -38,8 +38,6 @@ public partial class TransactionSplitDialog : ComponentBase
private decimal openAmount = 0; private decimal openAmount = 0;
private List<string> validationErrors = new(); private List<string> validationErrors = new();
private IEnumerable<string> sortedBookingTexts => bookingTexts.OrderBy(t => t);
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {

View file

@ -35,14 +35,13 @@ else
</td> </td>
<td> <td>
<div class="text-column"> <div class="text-column">
<FluentCombobox TOption="string" <input list="texts" @bind="@transaction.Text" placeholder="Type or select..." readonly="@transaction.ReadOnly"/>
Items="@sortedBookingTexts" <datalist id="texts">
OptionText="@(t => t)" @foreach (var text in bookingTexts.OrderBy(t => t))
OptionValue="@(t => t)" {
@bind-Value="@transaction.Text" <option value="@text"></option>
Autocomplete="ComboboxAutocomplete.Both" }
Placeholder="Text…" </datalist>
Disabled="@transaction.ReadOnly"/>
</div> </div>
</td> </td>
<td> <td>

View file

@ -27,8 +27,6 @@ public partial class PendingBookings : ComponentBase
private IReadOnlyList<Account> accounts = []; private IReadOnlyList<Account> accounts = [];
private IReadOnlyList<string> bookingTexts = []; private IReadOnlyList<string> bookingTexts = [];
private IEnumerable<string> sortedBookingTexts => bookingTexts.OrderBy(t => t);
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {
await LoadDataAsync(); await LoadDataAsync();