Skip to content

NativeWebView doesn't respect DragDrop.AllowDrop #29

@Algorithman

Description

@Algorithman

Describe the bug

Setting DragDrop.AllowDrop to false on a NativeWebView does just nothing.
Attaching dragdrop event handlers to NativeWebView as well, just nothing.

To Reproduce

Create an app, wire the MainWindow up for drag/drop, add a NativeWebView with DragDrop.AllowDrop=false.
Drag a file or folder over the NativeWebView -> it opens the file/folder in a separate window.

Expected behavior

AllowDrop should be respected and disable drag/drop behavior of the NativeWebView control.
Eventhandlers should be wired up properly as well. Someone might want to prevent dragging in stuff because of security issues.

Avalonia version

11.3.12 with Avalonia.Controls.WebView 11.4.0

OS

Windows

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions