input type file validation error #1495
Unanswered
csantos-nydig
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm mostly curious why this validation exists:
happy-dom/packages/happy-dom/src/nodes/html-input-element/HTMLInputElement.ts
Lines 795 to 802 in e6f9127
And if it can be removed or updated?
Context
I'm using
react-dropzone
and they have this line https://github.com/react-dropzone/react-dropzone/blob/c36ab5bd8b8fd74e2074290d80e3ecb93d26b014/src/index.js#L807-L808which triggers and error in
vitest
+happy-dom
Plain JS example
https://codesandbox.io/p/sandbox/silly-kowalevski-qjrmt6
doesn't throw errors in any browser
Beta Was this translation helpful? Give feedback.
All reactions