Commit 069bfc25 authored by Klaus Ramm's avatar Klaus Ramm

Fix site call on drop event (#9)

parent 41b77168
......@@ -147,7 +147,10 @@ export class Structogram {
container.addEventListener('dragover', function(event) {
event.preventDefault();
});
container.addEventListener('drop', () => this.presenter.appendElement(subTree.id));
container.addEventListener('drop', (event) => {
event.preventDefault();
this.presenter.appendElement(subTree.id)
});
container.addEventListener('click', () => this.presenter.appendElement(subTree.id));
if (this.presenter.getMoveId() && subTree.followElement && subTree.followElement.id == this.presenter.getMoveId()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment