Skip to content

Commit

Permalink
fix(file-uploader): use _tight from parent object
Browse files Browse the repository at this point in the history
corrects example for suggested use to tight w/ form-field

closes #2035
  • Loading branch information
andrew-frueh committed Feb 7, 2023
1 parent 0cd5543 commit 40dad27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- Optional to include the uploader in a hc-form-field -->
<hc-form-field>
<!-- When hc-form-field is used, set the `tight` param there instead of the component -->
<hc-form-field [tight]="controlTight.value">
<hc-label>Select a file to upload:</hc-label>
<hc-file-uploader
[formControl]="selectedFiles"
[multiple]="multipleFiles.value"
[tight]="controlTight.value"
subtext="2 MB maximum"
(filesAdded)="checkFileSize()"
></hc-file-uploader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export class FileUploaderComponent extends HcFormControlComponent implements DoC
_fileTypes = '*';
_fileNames: string[] = [];
_multiple = false;
_tight = false;
_disabled = false;
_isRequired = false;
_fileList: FileList;
Expand Down

0 comments on commit 40dad27

Please sign in to comment.