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] Text components are removed with an error if they are dragged while you are editing their contents #2294

Closed
tom-sherman opened this issue Sep 26, 2019 · 0 comments · Fixed by #2295
Labels

Comments

@tom-sherman
Copy link
Contributor

tom-sherman commented Sep 26, 2019

This can replicated in the demo: https://grapesjs.com/demo.html

  1. Drag in a text node
  2. Double click to activate the RTE
  3. Drag the text component into another position
  4. Select another component

The component is removed and the following error is logged to the console:

Uncaught TypeError: Cannot read property 'tagName' of null
    at r.toggleEvents (ComponentTextView.js:165)
    at r.disableEditing (ComponentTextView.js:71)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants