MicrosoftEdge / MicrosoftEdge/WebView2Feedback
UI sometimes becomes uninteractive with the mouse after selecting a file from a file input (.NET MAUI Blazor)
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Issue moved from dotnet/maui#15072
- Please respond to @DennisvHest.
From @DennisvHest on Saturday, May 13, 2023 8:07:59 PM
Description
Sometimes after selecting a file using a file input, the application can no longer be interacted with using the mouse. The application is not frozen however, because you can still interact with the keyboard.
It happens very inconsistantly. Sometimes I can reproduce it immediately, other times I have to select like 20 files before the bug occurs.
Once the bug occurs, the mouse interactivity can be restored by moving the mouse cursor out of the window. After that you can interact with the mouse again.
UPDATE (14-01-2024): After updating to .NET 8, instead of the original bug occuring, the application crashes.
https://github.com/dotnet/maui/assets/18610083/28ba1536-86ce-4245-acaf-636b8fd051b1
Steps to Reproduce
- Create a File > New .NET MAUI Blazor App
- Add the following code to the index.razor page:
@page "/"
<input type="file" />
<b>Counter: @counter</b>
<button @onclick="IncrementCount">count</button>
@code {
int counter = 0;
void IncrementCount()
{
counter++;
}
}
- Select a file using the file input
- Try to click the count button
- If you can still click the count button, repeat steps 3 and 4 (it might take like 20 times for the bug to occur)
- If the bug occurs (count button cannot be clicked), move the mouse outside of the window
- The count button can now be clicked again
Expected outcome: page stays interactive
Actual outcome: page is no longer interactive using the mouse
.NET 8 Update: application now crashes when this occurs
Link to public reproduction project repository
https://github.com/DennisvHest/FileInputBugTest
Version with bug
8.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10 22H2, Windows App SDK 1.3.230502000
Did you find any workaround?
Haven't found a workaround for this.
Relevant log output
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked FileInputBugTest reproduction project and its index.razor example, then run the file-selection steps on Windows 10 with .NET 8. Compare the intermittent mouse lockup with the reported crash and verify whether moving the pointer outside the window changes behavior. Done means the reproduction remains interactive with the mouse after repeated file selections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, html
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100