Skip to content

Commit e1bff7d

Browse files
committed
Make sure the preview rendering resolves. Fixes blueimp#2069.
1 parent ace155d commit e1bff7d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

js/jquery.fileupload-ui.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload User Interface Plugin 7.3
2+
* jQuery File Upload User Interface Plugin 7.3.1
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -519,6 +519,12 @@
519519
// so we have to resolve manually:
520520
dfd.resolveWith(node);
521521
}
522+
node.on('remove', function () {
523+
// If the element is removed before the
524+
// transition finishes, transition events are
525+
// not triggered, resolve manually:
526+
dfd.resolveWith(node);
527+
});
522528
},
523529
{
524530
maxWidth: options.previewMaxWidth,

0 commit comments

Comments
 (0)