Skip to content

Commit 160cd0e

Browse files
committed
Skip transitions for invisible nodes. Fixes blueimp#2105.
This is not only more efficient, but also required since it seems transition events are not fired for invisible elements.
1 parent 56ef024 commit 160cd0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/jquery.fileupload-ui.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery File Upload User Interface Plugin 7.3.1
2+
* jQuery File Upload User Interface Plugin 7.3.2
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2010, Sebastian Tschan
@@ -613,7 +613,7 @@
613613

614614
_transition: function (node) {
615615
var dfd = $.Deferred();
616-
if ($.support.transition && node.hasClass('fade')) {
616+
if ($.support.transition && node.hasClass('fade') && node.is(':visible')) {
617617
node.bind(
618618
$.support.transition.end,
619619
function (e) {

0 commit comments

Comments
 (0)