Explorar el Código

Fix callback of FilesInput sometimes not called

Popov72 hace 5 años
padre
commit
cdcaa2b809
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
             }
         });