-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Windows] WebView2 not handling DOM events properly #22697
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
Verified on main branch too. |
This need to be tagged as a XamCat issue. |
Hello! I just confirmed that this is an issue with Webview2 and not MAUI. I've filed a bug for this here: MicrosoftEdge/WebView2Feedback#4598 |
Hi, After checking the sample against https://www.nuget.org/packages/Microsoft.WindowsAppSDK/1.6.240531000-experimental1, I can confirm that the issue is solved by this version of the WindowsAppSDK. Waiting for the integration in MAUI to fix the issue. To check against this sample, in the csproj, replace: <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks> by <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.22621.0</TargetFrameworks>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<WindowsSdkPackageVersion>10.0.22621.35-preview</WindowsSdkPackageVersion> And reference the experimental package (if using VS 2022, don't forget to enable Nuget prerelease versions): <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240531000-experimental1" /> |
Any chance this fix is included into MAUI before .NET9? |
Should be fixed by #24266. |
Description
Starting from MAUI 8.0.14 and WindowsAppSDK 1.4.240211001, DOM events fired inside WebView2 are not handled properly, making the use of custom select boxes (for instance) impossible.
Steps to Reproduce
This has been happening since 8.0.14, but still is an issue in 8.0.40. To check this sample against 8.0.40, please update the csproj package references like so:
Link to public reproduction project repository
https://github.com/sreiss/maui-8.0.14-webview-events-issue/tree/main
Version with bug
8.0.14 SR3.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.7 SR2
Affected platforms
Windows
Affected platform versions
Microsoft.WindowsAppSDK 1.4.240211001 to 1.5.240311000
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: