Browse Source

cancel dnd if original target is content editable

pull/1148/head
Sasaya 8 years ago committed by GitHub
parent
commit
17d634bbd8
  1. 4
      Sortable.js

4
Sortable.js

@ -326,6 +326,10 @@
return; // only left button or enabled return; // only left button or enabled
} }
// cancel dnd if original target is content editable
if (originalTarget.isContentEditable) {
return;
}
target = _closest(target, options.draggable, el); target = _closest(target, options.draggable, el);

Loading…
Cancel
Save