From 17d634bbd8da52870c23c855c0629146b230503b Mon Sep 17 00:00:00 2001 From: Sasaya Date: Wed, 26 Jul 2017 12:25:38 +0800 Subject: [PATCH] cancel dnd if original target is content editable --- Sortable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sortable.js b/Sortable.js index 78b8aad..32d8420 100644 --- a/Sortable.js +++ b/Sortable.js @@ -326,6 +326,10 @@ return; // only left button or enabled } + // cancel dnd if original target is content editable + if (originalTarget.isContentEditable) { + return; + } target = _closest(target, options.draggable, el);