Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: Tab container inside accordion - javascript tab select error [27051]

$
0
0
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

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>