From 388a4accefd93fce758ee46399f5f7b036b040bb Mon Sep 17 00:00:00 2001 From: Olga Skurativska Date: Thu, 14 Dec 2017 09:50:35 +0100 Subject: [PATCH] Add window object as that is the location of clipboardData in IE (Ian Felton's fix done in src folder) --- src/drop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drop.js b/src/drop.js index 28ff3634..8349de04 100644 --- a/src/drop.js +++ b/src/drop.js @@ -114,7 +114,7 @@ evt.preventDefault(); } if (isDisabled() || !upload.shouldUpdateOn('paste', attr, scope)) return; - extractFilesAndUpdateModel(evt.clipboardData || evt.originalEvent.clipboardData, evt, 'pasteUrl'); + extractFilesAndUpdateModel(window.clipboardData || evt.clipboardData || evt.originalEvent.clipboardData, evt, 'pasteUrl'); }, false); if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1 &&