Ticket #11222 (closed bug: duplicate)
Toggle quick-click breaks display attribute.
|Reported by:||anonymous||Owned by:|
When the .toggle() function is triggered via a CLICK event, and the end-user triggers the CLICK event TWICE (double-click):
a) The animation continues until the end b) The toggle is no longer effective
When the CLICK event is only triggered ONCE when the animation is NOT running the .toggle() behaviour runs as expected.
My personal fix was to use the .data() setting a Boolean flag which stated the animation status.
- Before the .toggle() was executed I set .data("animating", true)
- Within the .toggle() callback method I set .data("animating", false)
- Before I trigger the .toggle() I place a condition based on the value of "animating", therefore this prevents the issue.
Nevertheless I would have expected this behaviour be default from the Core.