MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: WebView COREWEBVIEW2_HOSTING_MODE_WINDOW_TO_VISUAL causing Drag and Drop not to work
@venky8951 is already working on this.
Since May 21, 2026.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
Our application uses react-dnd (https://react-dnd.github.io/react-dnd/about) for our Drag & Drop which works well on all browsers and also works on MS addins (Excel & Word). But when we applied this fix: https://github.com/MicrosoftEdge/WebView2Feedback/issues/5444#issuecomment-3617396113 for another issue, the Drag & Drop suddenly stopped working.
We confirmed that removing this env variables will make the Drag & Drop work again.
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
143.0.3650.96
SDK Version
1.0.3485.44
Framework
----Please select----
Operating System
Windows 11
OS Version
26200.7462
Repro steps
I made a simple application that can run inside an addin:
addin_with_dnd_sandbox.xml
Using this application, you can easily add/remove the COREWEBVIEW2_FORCED_HOSTING_MODE variables and see how will the drag & drop will behave.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.