Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Animated toggle() turns display:inline into display:inline-block #2071
There's an example here: http://jsfiddle.net/cburschka/ve5fbujq/
This happens whether or not the span was explicitly set to display:inline earlier, or was just inheriting the default value.
This bug seems similar to #1774 (apparently closed prior to the release of 2.1.3), but isn't quite the same.
referenced this issue
Feb 7, 2015
This looks correct to me. The
What did you expect to happen?
Basically, the problem is that calling toggle() twice doesn't leave it in the state it was before - it's permanently turned into an inline-block element, even after the animation is over.
It can be worked around by explicitly resetting the element back to inline after the animation is done, though.
@cburschka I am having the same issue. Whenever I call toggle, the hiding aspect works fine. However, when toggling back to show the hidden content, the inline style of
As @cburschka, it can be worked around by explicitly resetting the element back to inline after the animation is done.