this.$element.attr('role', 'tablist');
this.$tabs = this.$element.children('[data-accordion-item]');
-
+
this.$tabs.attr({'role': 'presentation'});
this.$tabs.each(function(idx, el) {
'aria-selected': true
});
- $target.slideDown(this.options.slideSpeed, () => {
+ $target.stop().slideDown(this.options.slideSpeed, () => {
/**
* Fires when the tab is done opening.
* @event Accordion#down
'aria-selected': false
});
- $target.slideUp(this.options.slideSpeed, () => {
+ $target.stop().slideUp(this.options.slideSpeed, () => {
/**
* Fires when the tab is done collapsing up.
* @event Accordion#up