We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64d90b4 commit eaddfedCopy full SHA for eaddfed
ui/jquery.ui.tabs.js
@@ -579,13 +579,9 @@ $.widget("ui.tabs", {
579
580
select: function(index) {
581
index = this._getIndex(index);
582
- else if (index === null) { // usage of null is deprecated, TODO remove in next release
583
- index = -1;
584
- }
585
- if (index == -1 && this.options.collapsible) {
+ if (isNaN(index) && this.options.collapsible) {
586
index = this.options.selected;
587
}
588
-
589
this.anchors.eq(index).trigger(this.options.event + '.tabs');
590
return this;
591
},
0 commit comments