Skip to content

Commit c8bb745

Browse files
committed
Enable drop bug workaround for IE11 and up
Another bug that is carried on from ie10 to ie11. Closes #2476
1 parent cfebc98 commit c8bb745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/codemirror.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@
27812781
if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e))
27822782
return;
27832783
e_preventDefault(e);
2784-
if (ie_upto10) lastDrop = +new Date;
2784+
if (ie) lastDrop = +new Date;
27852785
var pos = posFromMouse(cm, e, true), files = e.dataTransfer.files;
27862786
if (!pos || isReadOnly(cm)) return;
27872787
// Might be a file drop, in which case we simply extract the text
@@ -2826,7 +2826,7 @@
28262826
}
28272827

28282828
function onDragStart(cm, e) {
2829-
if (ie_upto10 && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return; }
2829+
if (ie && (!cm.state.draggingText || +new Date - lastDrop < 100)) { e_stop(e); return; }
28302830
if (signalDOMEvent(cm, e) || eventInWidget(cm.display, e)) return;
28312831

28322832
e.dataTransfer.setData("Text", cm.getSelection());

0 commit comments

Comments
 (0)