Skip to content

Commit

Permalink
fix(ui5-upload-collection): ensure event.dataTransfer.types is array (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dimovpetar committed Apr 6, 2020
1 parent dec0d4d commit 28cc988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fiori/src/upload-utils/UploadCollectionBodyDnD.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import EventProvider from "@ui5/webcomponents-base/dist/EventProvider.js";
import UploadCollectionDnDOverlayMode from "../types/UploadCollectionDnDMode.js";

const draggingFiles = event => {
return event.dataTransfer.types.includes("Files");
return Array.from(event.dataTransfer.types).includes("Files");
};

const eventProvider = new EventProvider();
Expand Down

0 comments on commit 28cc988

Please sign in to comment.