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

Dropdowns do not respond in WebView 2 #9566

Closed
alshival opened this issue Apr 21, 2024 · 7 comments
Closed

Dropdowns do not respond in WebView 2 #9566

alshival opened this issue Apr 21, 2024 · 7 comments
Labels
area-WebView bug Something isn't working team-Controls Issue for the Controls team
Milestone

Comments

@alshival
Copy link

alshival commented Apr 21, 2024

Describe the bug

Working on a WinUI 3 project with a web view to navigate a site. When a user tries to submit a job application through the app, they are unable to select from drop down selectors.

Big bummer. I think it is related to this issue that might have been solved at some point a few updates ago, though I am still seeing it occur in the latest version of SDK.

Steps to reproduce the bug

  1. Create WebView2 at https://upwork.com.
  2. Start an application to any job.
  3. Click on a dropdown.

Site requires scripts, cookies, and basic tracking:

// WebView2 sender
sender.CoreWebView2.Profile.PreferredTrackingPreventionLevel = CoreWebView2TrackingPreventionLevel.Basic;
sender.CoreWebView2.Settings.IsScriptEnabled = true;
var cookieManager = sender.CoreWebView2.CookieManager;
var cookies = await cookieManager.GetCookiesAsync(null);

Expected behavior

App makes selection.

Screenshots

Recording2024-04-21131104-ezgif com-video-to-gif-converter

NuGet package version

WinUI 3 - Windows App SDK 1.5.2: 1.5.240404000

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@alshival alshival added the bug Something isn't working label Apr 21, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Apr 21, 2024
Copy link

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. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@duncanmacmichael
Copy link
Member

Fixed in 1.6-experiemntal1, closing issue.

@grabinat
Copy link

grabinat commented Jun 7, 2024

@duncanmacmichael
I tested 1.6 experimental1 and the issue with the flyouts and context menus described in following issue still occur:
MicrosoftEdge/WebView2Feedback#4140
Will this be addressed separately?

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Jun 7, 2024
@duncanmacmichael
Copy link
Member

@duncanmacmichael I tested 1.6 experimental1 and the issue with the flyouts and context menus described in following issue still occur: MicrosoftEdge/WebView2Feedback#4140 Will this be addressed separately?

Thanks for checking on this! I believe the team is re-evaluating this bug, yes.

@codendone
Copy link
Contributor

@grabinat We retested the specific repro steps of this issue in 1.6-experimental1 and see it as fixed. Is there something different about the scenario you're trying?

@codendone
Copy link
Contributor

The fix is now also in Version 1.5.4 (1.5.240607001).

@grabinat
Copy link

@grabinat We retested the specific repro steps of this issue in 1.6-experimental1 and see it as fixed. Is there something different about the scenario you're trying?

@codendone Sorry my bad – I just looked into it again. The project I used for testing, is packed by a separate Windows Application Packaged project. Even though, I did update the testing project to 1.6, I was not aware that the WAP was overriding it to 1.5. After adjusting the WAP it works now. Sorry for the trouble and thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WebView bug Something isn't working team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

4 participants