Skip to content

[Live] Do not re-render <input file> if input holds unuploaded files #323

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

Merged
merged 2 commits into from
May 18, 2022

Conversation

weaverryan
Copy link
Member

Q A
Bug fix? yes
New feature? no
Tickets Related to #299
License MIT

On #299, we're working on proper file upload support for live components. BUT, I think one thing is for sure: if you simply select a file and then (later) the component re-renders for some reason, we do NOT want to "replace" the <input file that has the attached file with an empty <input file.

I've tested locally - testing proved troublesome, due to some differences in how the .value attribute seems to work on browser vs the testing environment.

Cheers!

@weaverryan weaverryan merged commit ca7f933 into symfony:2.x May 18, 2022
@weaverryan weaverryan deleted the ignore-input-files branch May 18, 2022 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants