question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTML select does not work in BlazorWebView

See original GitHub issue

Description

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

  1. Create a MAUI Blazor app
  2. Add an InputSelect element to a page
  3. 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:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
markrendlecommented, Jun 22, 2021

Update: the WebView2 team have prioritized this issue and will start working on it soon: https://github.com/MicrosoftEdge/WebView2Feedback/issues/666#issuecomment-865332544

1reaction
markrendlecommented, Sep 7, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found