Skip to content

[Bug] Wrong assertion when dragging a text node#20610

Description

@boris-petrov

馃悶 Describe the Bug

Dragging text instead of an HTML element leads to an assertion error. See below in the reproduction.

馃敩 Minimal Reproduction

Having this HTML:

Some Text <a href="#">Some Link</a>

Select everything, hover the text and try dragging it. There will be an assertion failure.

The problem is here. Perhaps the check target instanceof Element is overly restrictive.

馃槙 Actual Behavior

An assertion which is wrong.

馃 Expected Behavior

No assertion.

馃實 Environment

  • Ember: 5.5.0
  • Node.js/npm: v21.4.0
  • OS: Linux
  • Browser: Chromium

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions