Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
boris-petrov opened this issue Dec 21, 2023 · 0 comments
Open

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

boris-petrov opened this issue Dec 21, 2023 · 0 comments

Comments

@boris-petrov
Copy link
Contributor

🐞 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant