Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView2 not handling DOM events properly #4477

Closed
Foda opened this issue Jun 6, 2024 · 1 comment
Closed

WebView2 not handling DOM events properly #4477

Foda opened this issue Jun 6, 2024 · 1 comment

Comments

@Foda
Copy link
Member

Foda commented Jun 6, 2024

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 dotnet/maui#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

  1. Just create a new app and add the following XAML:
    <WebView2 x:Name="webView" Source="https://google.com"/>

  2. Click on the app selector icon.

  3. Click on any link to be redirected to any Google app.

  4. The menu closes and the navigation is not done.

image
image

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

MicrosoftEdge/WebView2Feedback#4598

@codendone
Copy link
Contributor

Closing as duplicate of microsoft/microsoft-ui-xaml#9566, which has a fix in Version 1.5.4 (1.5.240607001).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants