Skip to content

Commit

Permalink
feat: feat: #433 (File input append mode)
Browse files Browse the repository at this point in the history
Feat: #433 (File input append mode)

fix #433
  • Loading branch information
foxhound87 committed Apr 14, 2023
1 parent 5849cc1 commit 5f31d7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 6.2.0 (master)
- Feat: #433 (File input append mode)

# 6.1.1 (master)
- Fix: #624 (default() helpers)

# 6.1.0 (master)
- Introduced `fallbackValue` and `retrieveNullifiedEmptyStrings` form options.
- Fix: `get()` strict mode improved
Expand Down
5 changes: 4 additions & 1 deletion src/Field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,10 @@ export default class Field extends Base implements FieldInterface {
files = _.map(e.target.files);
}

this.files = files || args;
this.files = [
..._.map(this.files),
...(files || args)
];
})
);

Expand Down

0 comments on commit 5f31d7e

Please sign in to comment.