Skip to content

Commit

Permalink
fix(files): fix defineProperty for files
Browse files Browse the repository at this point in the history
Closes #138
  • Loading branch information
Kent C. Dodds committed Oct 24, 2018
1 parent f29f551 commit aa0aab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ Object.entries(eventMap).forEach(([key, {EventType, defaultInit}]) => {
// input.files = [file]
// so we have to use this workaround to set the property
Object.defineProperty(node, 'files', {
configurable: true,
enumerable: true,
writable: true,
value: files,
})
}
Expand Down

0 comments on commit aa0aab7

Please sign in to comment.