HTML select does not work in BlazorWebView
See original GitHub issueDescription
The HTML select
element doesn’t work in the BlazorWebView. The dropdown does not display. This appears to be a known issue with WebView2 (see https://github.com/MicrosoftEdge/WebView2Feedback/issues/666) which they are being very slow to fix. This is going to cause problems with the MAUI+Blazor story.
Steps to Reproduce
- Create a MAUI Blazor app
- Add an
InputSelect
element to a page - Run and click the select and the dropdown does not display
Expected Behavior
Dropdown should display
Actual Behavior
Dropdown does not appear, apparently it’s behind the WebView2 control
Basic Information
- Version with issue: 6.0 Preview 4
- Last known good version: None
- IDE: Visual Studio 2019 Preview
- Platform Target Frameworks:
- UWP: Current
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
[Windows] HTML select options are not properly displayed ...
Description HTML select option are not rendered properly in BlazorWebView when targeting and running on windows.
Read more >Blazor Select/Option not binding
Use InputSelect instead of Select and bind value with its @bind-value attribute. You can find the example here.
Read more >BlazorWebView WPF Tutorial.
Blazor cannot run on the classic .NET Framework, as it is not netstandard 2.1 compatible. Finally, select the "Blank App" Template in the...
Read more >Host a Blazor web app in a .NET MAUI app using ...
The .NET MAUI BlazorWebView control enables you to host a Blazor web app in your .NET MAUI app, and integrate the app with...
Read more >Use browser developer tools with ASP.NET Core Blazor ...
The developer tools console is unavailable from ContentPages without a Blazor Web View. Open Google Chrome or Microsoft Edge.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Update: the WebView2 team have prioritized this issue and will start working on it soon: https://github.com/MicrosoftEdge/WebView2Feedback/issues/666#issuecomment-865332544
@Eilon Thanks for the update. For my project I’ve switched my UI library to MudBlazor which has a combo box implemented without
select
, and is also really rather good in other ways.