Skip to content

Commit

Permalink
fix: compatible isDirectory property
Browse files Browse the repository at this point in the history
  • Loading branch information
yinkaihui committed Apr 26, 2024
1 parent 41c43c0 commit 8236aba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/Upload/trigger-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ const TriggerNode = (props: PropsWithChildren<TriggerProps>) => {
.reduce((result, item, index) => {
if (item.webkitGetAsEntry) {
const entry = item.webkitGetAsEntry();
if (entry.isDirectory) {

// https://github.com/arco-design/arco-design/issues/2643
if (entry?.isDirectory) {
return [...result, index];
}
return result;
Expand Down

0 comments on commit 8236aba

Please sign in to comment.