The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
Starting from WindowsAppSDK 1.4.240211001, DOM events fired inside WebView2 are not handled properly, making the use of custom select boxes (for instance) impossible.
Describe the bug
Starting from WindowsAppSDK 1.4.240211001, DOM events fired inside WebView2 are not handled properly, making the use of custom select boxes (for instance) impossible.
Copied from https://github.com/dotnet/maui/issues/22697 as this issue is affecting customers of MAUI.
Note: this does NOT happen in the WPF/WinForms version of Webview2 -- it is an issue specifically w/ WinAppSDK
Steps to reproduce the bug
Just create a new app and add the following XAML:
<WebView2 x:Name="webView" Source="https://google.com"/>
Click on the app selector icon.
Click on any link to be redirected to any Google app.
The menu closes and the navigation is not done.
Expected behavior
The navigation to the selected Google app should have been done.
Screenshots
No response
NuGet package version
Windows App SDK 1.5.3: 1.5.240428000
Packaging type
Packaged (MSIX), Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022-preview, Visual Studio 2022, Visual Studio 2019
Additional context
https://github.com/MicrosoftEdge/WebView2Feedback/issues/4598