I'm using the latest version of MAUI and trying to create a Blazor Hybrid app.
The issue I'm facing is that I have a <select> which has some options. Whenever the window changes position, the dropdown list for the options, does not update. This means, after changing the Window position and using the <select>, the dropdown list appears somewhere it should not.
The issue is not a problem when just using Blazor WASM, it is however a problem when using a MAUI Blazor App.
A basic code example is this.
<label>Select issue showcase.</label>
<select>
<option disabled hidden selected>Select something.</option>
@foreach(int i in Enumerable.Range(0, 10))
{
<option>@i</option>
}
</select>
I have tried calling StateHasChanged(), but it didn't do anything. I tried using the <InputSelect>
component from Blazor, also it did not work.
However, I have noticed that whenever I click over to another window (can be anything, Visual Studio, Windows Explorer or whatever), and then try to open the dropdown list again, it now works.