Start with no active tab
-
I wanna start the tab view without any active tab. How can I do this? When I activate “Reset Active” and save it, the page does load with error and no tabs are shown.
Javascript error apprears (jquery.responsiveTabs.js:123:92)
TypeError: undefined is not an object (evaluating ‘_this._getTab(_this.option.active).disabled’)I made a workaround with uncommenting this in the JS file:
/*
if(_this.options.startCollapsed !== true && !(_this.options.startCollapsed === ‘accordion’ && _this.state === ‘accordion’)) {// Check if the page has a hash set that is linked to a tab
if(tabRef >= 0 && !_this._getTab(tabRef).disabled) {
// If so, set the current tab to the linked tab
firstTab = _this._getTab(tabRef);
} else if(_this.options.active > 0 && !_this._getTab(_this.options.active).disabled) {
firstTab = _this._getTab(_this.options.active);
} else {
// If not, just get the first one
firstTab = _this._getTab(0);
}// Open the initial tab
_this._openTab(e, firstTab); // Open first tab// Call the callback function
_this.options.load.call(this, e, firstTab); // Call the load callback
}
*/
- The topic ‘Start with no active tab’ is closed to new replies.