Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

[show-previews] value is not editable. #3

Closed
cronosxfiles opened this issue Jun 13, 2017 · 1 comment
Closed

[show-previews] value is not editable. #3

cronosxfiles opened this issue Jun 13, 2017 · 1 comment

Comments

@cronosxfiles
Copy link

I've tried to hide the selected file previews since I'm only interested in directly showing the compressed image result. However, the previews are always visible. I think the issue lies in the code for file ng2-file-input.component.ts, line 52:

this.showPreviews = this.showPreviews || this.defaultOptions.showPreviews;

Since this is an OR comparison, if the default option is true, then no matter which is the input's value for [show-previews], the expression will always result true.

So far I've managed to hide it by overriding its CSS class:

.ng2-file-input-files   {
  display: none;
}
@bergben
Copy link
Owner

bergben commented Jun 13, 2017

Hey @cronosxfiles ! Thanks for reporting this issue! I have just published version 0.1.13 which fixes this problem :)

@bergben bergben closed this as completed Jun 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants