Revert "PR U-11: FluentCombobox for booking-text autocomplete"
This reverts commit ceef2c162f.
This commit is contained in:
parent
ceef2c162f
commit
2522274928
4 changed files with 14 additions and 19 deletions
|
|
@ -49,13 +49,13 @@
|
|||
</td>
|
||||
<td>
|
||||
<div class="text-column">
|
||||
<FluentCombobox TOption="string"
|
||||
Items="@sortedBookingTexts"
|
||||
OptionText="@(t => t)"
|
||||
OptionValue="@(t => t)"
|
||||
@bind-Value="@transaction.Text"
|
||||
Autocomplete="ComboboxAutocomplete.Both"
|
||||
Placeholder="Text…"/>
|
||||
<input list="texts" @bind="@transaction.Text" placeholder="Type or select..."/>
|
||||
<datalist id="texts">
|
||||
@foreach (var text in bookingTexts.OrderBy(t => t))
|
||||
{
|
||||
<option value="@text"></option>
|
||||
}
|
||||
</datalist>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -38,8 +38,6 @@ public partial class TransactionSplitDialog : ComponentBase
|
|||
private decimal openAmount = 0;
|
||||
private List<string> validationErrors = new();
|
||||
|
||||
private IEnumerable<string> sortedBookingTexts => bookingTexts.OrderBy(t => t);
|
||||
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -35,14 +35,13 @@ else
|
|||
</td>
|
||||
<td>
|
||||
<div class="text-column">
|
||||
<FluentCombobox TOption="string"
|
||||
Items="@sortedBookingTexts"
|
||||
OptionText="@(t => t)"
|
||||
OptionValue="@(t => t)"
|
||||
@bind-Value="@transaction.Text"
|
||||
Autocomplete="ComboboxAutocomplete.Both"
|
||||
Placeholder="Text…"
|
||||
Disabled="@transaction.ReadOnly"/>
|
||||
<input list="texts" @bind="@transaction.Text" placeholder="Type or select..." readonly="@transaction.ReadOnly"/>
|
||||
<datalist id="texts">
|
||||
@foreach (var text in bookingTexts.OrderBy(t => t))
|
||||
{
|
||||
<option value="@text"></option>
|
||||
}
|
||||
</datalist>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@ public partial class PendingBookings : ComponentBase
|
|||
private IReadOnlyList<Account> accounts = [];
|
||||
private IReadOnlyList<string> bookingTexts = [];
|
||||
|
||||
private IEnumerable<string> sortedBookingTexts => bookingTexts.OrderBy(t => t);
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await LoadDataAsync();
|
||||
|
|
|
|||
Loading…
Reference in a new issue