Skip to content

DataList element in webview2 opens behind the main window  #9762

@vishal2447

Description

@vishal2447

Describe the bug

I have a html page with the datalist element in it. When I load the html in the webview 2 control in a WinUI application I initially thought the dropdown didn't open but actually the dropdown was opening all along but behind the window. I was able to indentify this when i moved the window. Once i move the window and try to open datalist again the dropdown still open in the last place it opened.

Steps to reproduce the bug

I have created a sample repo to reproduce the issue.

  1. have a html page with the datalist element in it
  2. open the html page in the webview2
  3. click on the datalist element in page

Expected behavior

the datalist dropdown is opened above the window

Screenshots

Recording.2024-06-05.142202.mp4

NuGet package version

Windows App SDK 1.5.3: 1.5.240428000

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 22H2 (22621, 2022 Update)

IDE

Visual Studio 2022-preview, Visual Studio 2022

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions