Skip to content

Commit

Permalink
fixed issue with drag bubbling and active drop elements #1629
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Nov 13, 2017
1 parent 9801261 commit e90c096
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/admin/src/resources/dist/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9241,6 +9241,7 @@ angular.module('dnd', [])
e.dataTransfer.dropEffect = 'move';
// allows us to drop
if (e.preventDefault) { e.preventDefault(); }
if (e.stopPropagation) { e.stopPropagation(); }
if (!scope.dndIsvalid({hover: scope.dndModel, dragged: dndFactory.get().content})) {
e.stopPropagation();
e.preventDefault();
Expand Down
1 change: 1 addition & 0 deletions modules/admin/src/resources/js/dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ angular.module('dnd', [])
e.dataTransfer.dropEffect = 'move';
// allows us to drop
if (e.preventDefault) { e.preventDefault(); }
if (e.stopPropagation) { e.stopPropagation(); }
if (!scope.dndIsvalid({hover: scope.dndModel, dragged: dndFactory.get().content})) {
e.stopPropagation();
e.preventDefault();
Expand Down

0 comments on commit e90c096

Please sign in to comment.