with latest November update, tab container inside of an accordion is throwing a javascript error on page load trying to select tab.
_setFocus: function (obj) {
$get("__tab_" + obj.get_element().id).focus();
},
This may be a result of another issue i see posted of the Tab change code always firing.
Tabs in this case are being dynamically loaded into an accordion pane that isn't visible on load.
Comments: The problem appears to be in the clientside Tabs.pre.js file This routine: _app_onload: function (sender, e) { if (this._cachedActiveTabIndex != -1) { this.set_activeTabIndex(this._cachedActiveTabIndex); this._cachedActiveTabIndex = -1; var activeTab = this.get_tabs()[this._activeTabIndex]; if (activeTab) { activeTab._wasLoaded = true; activeTab._setFocus(activeTab); } } this._loaded = true; } This needs to check if the tab is visible before trying to set focus
_setFocus: function (obj) {
$get("__tab_" + obj.get_element().id).focus();
},
This may be a result of another issue i see posted of the Tab change code always firing.
Tabs in this case are being dynamically loaded into an accordion pane that isn't visible on load.
Comments: The problem appears to be in the clientside Tabs.pre.js file This routine: _app_onload: function (sender, e) { if (this._cachedActiveTabIndex != -1) { this.set_activeTabIndex(this._cachedActiveTabIndex); this._cachedActiveTabIndex = -1; var activeTab = this.get_tabs()[this._activeTabIndex]; if (activeTab) { activeTab._wasLoaded = true; activeTab._setFocus(activeTab); } } this._loaded = true; } This needs to check if the tab is visible before trying to set focus