mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
When stopping a show, save showing end state instead of start state to fix animation toggling issue. Fixes #10848.
This commit is contained in:
8
src/effects.js
vendored
8
src/effects.js
vendored
@@ -462,8 +462,12 @@ jQuery.fx.prototype = {
|
||||
t.queue = this.options.queue;
|
||||
t.elem = this.elem;
|
||||
t.saveState = function() {
|
||||
if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
|
||||
jQuery._data( self.elem, "fxshow" + self.prop, self.start );
|
||||
if ( jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
|
||||
if ( self.options.hide ) {
|
||||
jQuery._data( self.elem, "fxshow" + self.prop, self.start );
|
||||
} else if ( self.options.show ) {
|
||||
jQuery._data( self.elem, "fxshow" + self.prop, self.end );
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user