Skip to content
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

USWDS - Feature: File Input on Cancel resets input #5212

Open
2 tasks done
etanb opened this issue Mar 30, 2023 · 0 comments
Open
2 tasks done

USWDS - Feature: File Input on Cancel resets input #5212

etanb opened this issue Mar 30, 2023 · 0 comments
Assignees
Labels
Needs: Discussion We need to discuss an approach to this issue Package: File Input Type: Feature Request New functionality

Comments

@etanb
Copy link
Contributor

etanb commented Mar 30, 2023

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

  1. Go to file input component
  2. Select a file
  3. Select another file
  4. Press cancel
  5. Previous file is completely gone

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

@etanb etanb added Needs: Confirmation We need to confirm that this is an issue Status: Triage We're triaging this issue and grooming if necessary Type: Bug A problem in the code labels Mar 30, 2023
@thisisdano thisisdano added Type: Feature Request New functionality and removed Type: Bug A problem in the code labels May 11, 2023
@thisisdano thisisdano changed the title USWDS - Bug: File Input on Cancel resets input USWDS - Feature: File Input on Cancel resets input May 11, 2023
@thisisdano thisisdano added Status: Voting Open 👍 Collecting upvotes to measure community interest and removed Needs: Confirmation We need to confirm that this is an issue Status: Triage We're triaging this issue and grooming if necessary Status: Voting Open 👍 Collecting upvotes to measure community interest labels May 11, 2023
@mahoneycm mahoneycm added the Status: Triage We're triaging this issue and grooming if necessary label Feb 26, 2024
@mejiaj mejiaj removed the Status: Triage We're triaging this issue and grooming if necessary label May 23, 2024
@mejiaj mejiaj removed the Status: Voting Open 👍 Collecting upvotes to measure community interest label May 23, 2024
@brunerae brunerae added the Needs: Discussion We need to discuss an approach to this issue label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Discussion We need to discuss an approach to this issue Package: File Input Type: Feature Request New functionality
Projects
Status: Needs refinement
Development

No branches or pull requests

5 participants