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

resetFileInput() not working on Angular 18.2.x #65

Open
devmoayid opened this issue Oct 7, 2024 · 0 comments
Open

resetFileInput() not working on Angular 18.2.x #65

devmoayid opened this issue Oct 7, 2024 · 0 comments

Comments

@devmoayid
Copy link

I'm experiencing an issue with the resetFileInput() function in the mat-file-upload component. It does not seem to be functioning as expected on the following Angular versions:

@angular/core: ^18.2.0
@angular/cdk: ^18.2.7
@angular/common: ^18.2.0
@angular/compiler: ^18.2.0
@angular/material: ^18.2.7

Steps to reproduce:

  1. Use mat-file-upload component in an Angular project with the above versions.
  2. Try to use the resetFileInput() function after selecting a file.

Expected behavior:
The resetFileInput() function should clear the selected file and reset the file input field.

Actual behavior:
The file input does not reset, and the previously selected file remains.

Additional information:
Please let me know if further information is needed to replicate this issue.

Thank you!

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

No branches or pull requests

1 participant