-
-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
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
input[type=file].value = ''
does not reset input.files
after triggerEvent
#920
Comments
Huh. Are you supposed to be able to truncate it by just assigning value like that? I'm not opposed to the a PR adding the work around IFF that is a normal usage pattern for folks. |
It's by spec: https://html.spec.whatwg.org/multipage/input.html#dom-input-value-filename
And it's the most popular way to reset |
Thank you! Sorry for not knowing, I just haven't used |
In order to fix, we need to:
ember-test-helpers/addon-test-support/@ember/test-helpers/dom/fire-event.ts Lines 260 to 270 in e1cb9b4
|
Tmp workaround:
The text was updated successfully, but these errors were encountered: