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

fix: delete image error (#208) #211

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

baxishrey
Copy link
Contributor

This PR resolves issue #208 .
The inputElement will not be rendered if the max file count is reached.
<label *ngIf="fileCounter != max">
If user clears the images after upload, the line
this.inputElement.nativeElement.value = '';
will throw error.
I am checking if inputElement exists before clearing its values

@UncleDave UncleDave merged commit 47c6099 into aberezkin:development Jul 5, 2018
@baxishrey baxishrey deleted the bugfix-DeleteImageError branch July 5, 2018 09:29
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.

2 participants