Skip to content

Commit aa0aab7

Browse files
author
Kent C. Dodds
authored
fix(files): fix defineProperty for files
Closes #138
1 parent f29f551 commit aa0aab7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/events.js

+3
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ Object.entries(eventMap).forEach(([key, {EventType, defaultInit}]) => {
314314
// input.files = [file]
315315
// so we have to use this workaround to set the property
316316
Object.defineProperty(node, 'files', {
317+
configurable: true,
318+
enumerable: true,
319+
writable: true,
317320
value: files,
318321
})
319322
}

0 commit comments

Comments
 (0)