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

How to clear the input? #21

Closed
Tavisco opened this issue Jan 9, 2019 · 2 comments
Closed

How to clear the input? #21

Tavisco opened this issue Jan 9, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@Tavisco
Copy link

Tavisco commented Jan 9, 2019

How can I programaticaly clear the file input?

I've tried binding it to a model like the following code, setting that model to null, but it didn't worked
<ngx-mat-file-input ... [(ngModel)]="myModel"></ngx-mat-file-input>

Any advices?

@merlosy
Copy link
Owner

merlosy commented Jan 10, 2019

I started worked on a new feature to ease the possibility to clear the input.
It would also come as a workaround for an issue with Firefox that doesn't triggers change event when a user cancels, instead of selecting the file(s) to upload.

The documentation and example will arrive at the same time :)

@merlosy merlosy added the enhancement New feature or request label Jan 10, 2019
@merlosy
Copy link
Owner

merlosy commented Jan 19, 2019

now available in 1.1.0 :) enjoy

@merlosy merlosy closed this as completed Jan 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants