MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: WebView2CompositionControl doubleclick on webpage object is not working in .NET4.8 framework app

Open
#5,099 5 comments 1 reaction 1 assignee View on GitHub

@venky8951 is already working on this.

Since Feb 14, 2025.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?

When we implement WebView2CompositionControl to open webpage that contains code below. The double-click on paragraph isn't working.

`

Double-click this paragraph to trigger a function.

<script> function myFunction() { document.getElementById("demo").innerHTML += "Hello World "; } </script>`
Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

132.0.2957.140

SDK Version

1.0.3065.39

Framework

WPF

Operating System

Windows 11

OS Version

22631.4751

Repro steps

The code snippet below with navigate to simple html code below is enough to reproduce the issue.
webviewapp.yaml code snippet.
`
<wv2:WebView2CompositionControl Name="webView" />

<wv2:WebView2CompositionControl Name="webView2"/>`

index.html code snippet.
`

Double-click this paragraph to trigger a function.

<script> function myFunction() { document.getElementById("demo").innerHTML += "Hello World "; } </script>`

WpfTestdotNetFW.zip

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.