I am using a searchable dropdown list to input values into a .net maui android app. The dropdown works but when the selection is made it is not entered into the input field. The issue seems to be sporadic sometimes working when the page is first loaded. The code works great with the Windows Machine target. I am not using an editform model with this page. Built with Visual Studio 22 Version 17.4.4 and.net 6.0. Running on Android 10 & 11.
<div class="panel panel-default">
<div class="panel-body ">
<div class="container-fluid">
<table class="table dt-responsive" id="header">
<tr>
<th>From Code</th>
<td><input type="search" list="loclist" value="@transferOrderHeader.Transfer_from_Code" @onchange="UpdateFrom" disabled=@isDisabled /></td>
<th>To Code</th>
<td><input type="search" list="loclist" value="@transferOrderHeader.Transfer_to_Code" @onchange="UpdateTo" disabled=@isDisabled /></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
</table>
</div>
</div>
</div>
<datalist class="col-4" id="loclist">
@foreach (var loc in datamodel.locations)
{
<option value="@loc.Code">@loc.Address.Name</option>
}
</datalist>
I tried using inputselect, but it would not work with what I was trying to do, searchable dropdown. I tried using @bind instead of value, tried deleting the onchange and disabled tags with no effect. Any input would be greatly appreciated.