Skip to content

Commit

Permalink
Merge pull request #76 from abramenal/feature/force-drag-drop-support
Browse files Browse the repository at this point in the history
Feature/force drag drop support
  • Loading branch information
abramenal authored Jun 12, 2019
2 parents 5f5e021 + a3904bb commit 219255e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cypress-file-upload",
"version": "3.1.2",
"version": "3.1.3",
"description": "A Cypress command for file upload",
"main": "dist/bundle.js",
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion src/handlers/handleDragDrop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default ({ subject }, { files }) =>
export default ({ subject }, { files, force }) =>
cy.wrap(subject, { log: false }).trigger('drop', {
force,
dataTransfer: {
files,
types: ['Files'],
Expand Down

0 comments on commit 219255e

Please sign in to comment.