Skip to content

Commit

Permalink
Merge pull request #1706 from umbraco/bugfix/input-file-remove
Browse files Browse the repository at this point in the history
remove files
  • Loading branch information
iOvergaard authored Apr 25, 2024
2 parents 4e0de26 + 3ffa391 commit 3b7653b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,11 @@ export class UmbInputUploadFieldElement extends UUIFormControlMixin(UmbLitElemen
}

#handleRemove() {
this._files = [];
const uniques = this._files.map((file) => file.unique);
this.#manager.remove(uniques);
this._files = [];
this.value = '';
this.keys = [];

this.dispatchEvent(new UmbChangeEvent());
}
Expand Down

0 comments on commit 3b7653b

Please sign in to comment.