Skip to content

Reset the internal input value when the reset button is clicked in FileInputField (#641) #642

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
Jun 7, 2025

Conversation

atmelmicro
Copy link
Collaborator

@atmelmicro atmelmicro commented May 26, 2025

Not resetting the internal input value will cause the input to not register any files if the user had clicked "Browse", then resetted the field and again clicked "Browse" and selected a file. The 2nd file would not have an event fired for this. This did not affect drag and drop.

Closes #641

@bedrich-schindler bedrich-schindler force-pushed the bug/file-input-reset-interal-ref branch 2 times, most recently from dcc4bce to 1782d2c Compare June 6, 2025 07:50
…leInputField (#641)

Not resetting the internal input value will cause the input to not
register any files if the user had clicked "Browse", then resetted the
field and again clicked "Browse" and selected a file. The 2nd file would
not have a event fired for this. This did not affect drag and drop.
@bedrich-schindler bedrich-schindler force-pushed the bug/file-input-reset-interal-ref branch from 1782d2c to d78e740 Compare June 7, 2025 15:01
@bedrich-schindler bedrich-schindler merged commit 0dee60d into master Jun 7, 2025
10 checks passed
@bedrich-schindler bedrich-schindler deleted the bug/file-input-reset-interal-ref branch June 7, 2025 15:14
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.

The FileInputField does not accept any files if it is reset and the file is uploaded with the browse button
2 participants