mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 15:24:55 -05:00
Fix #14318: Cherry-pick interrupted animation fix from master ea5c22ec12
This commit is contained in:
8
src/effects.js
vendored
8
src/effects.js
vendored
@@ -337,7 +337,13 @@ function defaultPrefilter( elem, props, opts ) {
|
||||
delete props[ prop ];
|
||||
toggle = toggle || value === "toggle";
|
||||
if ( value === ( hidden ? "hide" : "show" ) ) {
|
||||
continue;
|
||||
|
||||
// If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden
|
||||
if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
|
||||
hidden = true;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user