Skip to content

Commit

Permalink
Merge pull request #61 from eytanProxi/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
johndatserakis authored Jul 14, 2022
2 parents 30b5253 + 5b2f337 commit 9795efb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/file-upload-with-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,12 @@ export class FileUploadWithPreview {
this.cachedFileArray = [];

// Base options
const { maxFileCount, multiple, presetFiles, showDeleteButtonOnImages } = options;
const { maxFileCount, multiple, presetFiles, showDeleteButtonOnImages, accept} = options;
this.options.showDeleteButtonOnImages = showDeleteButtonOnImages ?? true;
this.options.maxFileCount = maxFileCount ?? 0;
this.options.presetFiles = presetFiles ?? [];
this.options.multiple = multiple ?? false;
this.options.accept = accept ?? this.options.accept;

// Text options
const { browse, chooseFile, label, selectedCount } = options.text || {};
Expand Down

0 comments on commit 9795efb

Please sign in to comment.