]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
fix: finish running animations - closes #12044 12045/head
authorDaniel Ruf <mac1@daniel-ruf.de>
Wed, 8 Apr 2020 15:59:16 +0000 (17:59 +0200)
committerDaniel Ruf <mac1@daniel-ruf.de>
Wed, 8 Apr 2020 15:59:16 +0000 (17:59 +0200)
js/foundation.accordion.js

index 65c0327546caa172ec94cfc567e3ee2e062fb005..0b9096ee1f164c6f998c1e0bc21970394585cd56 100644 (file)
@@ -274,7 +274,7 @@ class Accordion extends Plugin {
       'aria-selected': true
     });
 
-    $target.stop().slideDown(this.options.slideSpeed, () => {
+    $target.finish().slideDown(this.options.slideSpeed, () => {
       /**
        * Fires when the tab is done opening.
        * @event Accordion#down
@@ -302,7 +302,7 @@ class Accordion extends Plugin {
      'aria-selected': false
     });
 
-    $target.stop().slideUp(this.options.slideSpeed, () => {
+    $target.finish().slideUp(this.options.slideSpeed, () => {
       /**
        * Fires when the tab is done collapsing up.
        * @event Accordion#up