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:
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:
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 resulttrue
.So far I've managed to hide it by overriding its CSS class: