浏览代码

Fix callback of FilesInput sometimes not called

Popov72 4 年之前
父节点
当前提交
cdcaa2b809
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Misc/filesInput.ts

+ 1 - 1
src/Misc/filesInput.ts

@@ -157,7 +157,7 @@ export class FilesInput {
                 }
             }
 
-            if (--remaining.count) {
+            if (--remaining.count === 0) {
                 callback();
             }
         });