Skip to content

Commit

Permalink
fix: prevent child drop event to call swapAreas
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtil committed May 28, 2021
1 parent 76eed36 commit 12c2b6e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Area.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export default {
dragEvent.dataTransfer.getData("areas-areaid"),
10
);
this.areas.swapAreas(areaId, this.id);
if (!Number.isNaN(areaId)) {
this.areas.swapAreas(areaId, this.id);
}
},
onDragEnter(dragEvent) {
if (dragEvent.dataTransfer.types.includes("areas-areaid")) {
Expand Down

0 comments on commit 12c2b6e

Please sign in to comment.