Open sreiss opened 1 month ago
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Verified this issue with Visual Studio 17.11.0 Preview 1.0 ( 8.0.40 & 8.0.7 )
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: https://github.com/MicrosoftEdge/WebView2Feedback/issues/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?
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