Page MenuHomePhabricator

Listed items get deleted upon drag-dropping them
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce:

  1. Create a list of items , numbered or bullet list.

For example:

  • First
  • Second
  • Third
  1. Now select both the items together and now drag them and try to place them in some other position in the document

Observed Result:

The following error appears in the console and the entire list gets deleted.
Uncaught Error: Inserted data is trying to close the root node (at index 6)

Event Timeline

Ryasmeen raised the priority of this task from to Needs Triage.
Ryasmeen updated the task description. (Show Details)
Ryasmeen added a project: VisualEditor.
Ryasmeen subscribed.
Ryasmeen set Security to None.

Change 237644 had a related patch set uploaded (by Esanders):
Wrap interal drop's insertContent in a try/catch

https://gerrit.wikimedia.org/r/237644

Change 237644 merged by jenkins-bot:
ve.ce.Surface: Wrap internal drop's insertContent in a try/catch

https://gerrit.wikimedia.org/r/237644

The issue of Drag-drop of listed items causing the content to be lost is fixed now. From the fix, I understand it also wont let user perform drag-drop with lists by reverting the action? Correct me if its not supposed to be like that. For now, I am going to mark this issue as verified from QA side.