WebView2Feedback icon indicating copy to clipboard operation
WebView2Feedback copied to clipboard

[Problem/Bug]: FluentUI ComboBox/Select don't accept selected option in WinUI WebView2

Open Eilon opened this issue 1 year ago • 0 comments

What happened?

Original reports:

  • https://github.com/microsoft/fluentui-blazor/issues/1741
  • https://github.com/dotnet/maui/issues/22297

But the bug seems specific to WinUI WebView2 (doesn't repro on WPF WebView2).

Details: The FluentUI ComboBox (which internally uses an HTML <input> + some other HTML UI) doesn't accept selection in the WinUI WebView2. It works in regular Edge (just browsing the web), and it works in WPF WebView2.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

124.0.2478.80

SDK Version

WinAppSDK 1.5.240428000

Framework

WinUI3/WinAppSDK

Operating System

Windows 11

OS Version

10.0.22631.3447

Repro steps

  1. Create new WinUI3 Packaged App
  2. Change XAML to be just <WebView2 Source="https://learn.microsoft.com/en-us/fluent-ui/web-components/components/combobox?pivots=typescript"></WebView2>
  3. Run the app
  4. Scroll down to the bottom of the page and in the Example section make sure the Result tab is enabled, and in the dropdowns you see try to pick a 'graphics card' option. But it won't let you

image

If you try the same repro in a WPF WebView2 app it works fine (the graphics card is selected). And if you browser in regular Edge browser to https://learn.microsoft.com/en-us/fluent-ui/web-components/components/combobox?pivots=typescript then it also works fine.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Eilon avatar May 08 '24 17:05 Eilon