USWDS - Feature: File Input on Cancel resets input #5212
Labels
Needs: Discussion
We need to discuss an approach to this issue
Package: File Input
Type: Feature Request
New functionality
Describe the bug
When using the File Input component, if you choose a file, then attempt to choose another one BUT press cancel instead, it clears the input. The default action should be to leave the File in place upon pressing cancel. Cancel !== clear input.
Steps to reproduce the bug
Expected Behavior
The previously chosen file should remain in place if a user clicks cancel.
Related code
No response
Screenshots
uploadCancel.mp4
System setup
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: