Skip to content

Commit f355f75

Browse files
authored
Merge pull request #1148 from storyn26383/patch-2
cancel dnd if original target is content editable
2 parents 5a7bb1b + 17d634b commit f355f75

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sortable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@
326326
return; // only left button or enabled
327327
}
328328

329+
// cancel dnd if original target is content editable
330+
if (originalTarget.isContentEditable) {
331+
return;
332+
}
329333

330334
target = _closest(target, options.draggable, el);
331335

0 commit comments

Comments
 (0)