We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c3f3d commit 4826ea1Copy full SHA for 4826ea1
src/js/jquery.orgchart.js
@@ -966,11 +966,14 @@
966
},
967
//
968
dragoverHandler: function (event) {
969
- event.preventDefault();
970
if (!$(event.delegateTarget).is('.allowedDrop')) {
971
event.originalEvent.dataTransfer.dropEffect = 'none';
+ } else {
972
+ // default action for drag-and-drop of div is not to drop, so preventing default action for nodes which have allowedDrop class
973
+ //to fix drag and drop on IE and Edge
974
+ event.preventDefault();
975
}
- },
976
+ },
977
978
dragendHandler: function (event) {
979
this.$chart.find('.allowedDrop').removeClass('allowedDrop');
0 commit comments