Skip to content

Commit

Permalink
Fix things disappearing on drag - closes #2940
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed Aug 22, 2023
1 parent 09ce044 commit d07d57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/schema-impl/capability/thing.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ class Thing {
e.stopPropagation();

const dragNode = document.getElementById(e.dataTransfer.getData('text'));
if (!dragNode) {
if (!dragNode || dragNode == this.element) {
return;
}

Expand Down

0 comments on commit d07d57f

Please sign in to comment.