Skip to content

Commit

Permalink
fix(getFiles): set multiple to calculate the number of files wrong #201
Browse files Browse the repository at this point in the history
  • Loading branch information
big-camel committed Jul 5, 2022
1 parent 96e28bb commit 8e0a52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine/src/request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Request implements RequestInterface {
input.type = 'file';
input.accept = accept;
input.style.display = 'none';
input.multiple = multiple !== 1;
input.multiple = multiple > 1;

const remove = () => {
input.remove();
Expand Down

0 comments on commit 8e0a52c

Please sign in to comment.