We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://codesandbox.io/p/sandbox/test-file-upload-xtg77s
The file input should have the uploaded file.
The onChange event is not triggered, and the file input doesn't have the uploaded file.
onChange
^14.1.1
No response
The problem lies in the isAcceptableFile function. After splitting the string by its commas, it doesn't trim the whitespace, so some valid comma-separated tokens fail this test.
isAcceptableFile
The text was updated successfully, but these errors were encountered:
It's my first time contributing to this project. Once I have time, I can look into how to write an MR following your standards.
Sorry, something went wrong.
No branches or pull requests
Reproduction example
https://codesandbox.io/p/sandbox/test-file-upload-xtg77s
Prerequisites
Expected behavior
The file input should have the uploaded file.
Actual behavior
The
onChange
event is not triggered, and the file input doesn't have the uploaded file.User-event version
^14.1.1
Environment
No response
Additional context
The problem lies in the
isAcceptableFile
function. After splitting the string by its commas, it doesn't trim the whitespace, so some valid comma-separated tokens fail this test.The text was updated successfully, but these errors were encountered: