src/aria/widgets/container/Tab.js
function () {
            this.changeProperty("selectedTab", this._cfg.tabId);
            if (this._cfg.waiAria) {
                // Focusing the Tab before focusing the TabPanel is not enough to make the screen reader read the tab's title first
                // A sufficient timeout would be necessary, but we can't program that way safely
                // this._focus();
                var controlledTabPanelId = this._getControlledTabPanelId();
                if (controlledTabPanelId != null) {
                    var tabPanelElement = ariaUtilsDom.getElementById(controlledTabPanelId);
                    ariaTemplatesNavigationManager.focusFirst(tabPanelElement);
                }
            }
        }
function () {
            this.changeProperty("selectedTab", this._cfg.tabId);
            if (this._cfg.waiAria) {
                // Focusing the Tab before focusing the TabPanel is not enough to make the screen reader read the tab's title first
                // A sufficient timeout would be necessary, but we can't program that way safely
                // this._focus();
                var controlledTabPanelId = this._getControlledTabPanelId();
                if (controlledTabPanelId != null) {
                    var tabPanelElement = ariaUtilsDom.getElementById(controlledTabPanelId);
                    ariaTemplatesNavigationManager.focusFirst(tabPanelElement);
                }
            }
        }
function ( ) { this . changeProperty ( "selectedTab" , this . _cfg . tabId ) ; if ( this . _cfg . waiAria ) { // Focusing the Tab before focusing the TabPanel is not enough to make the screen reader read the tab's title first // A sufficient timeout would be necessary, but we can't program that way safely // this._focus(); var controlledTabPanelId = this . _getControlledTabPanelId ( ) ; if ( controlledTabPanelId != null ) { var tabPanelElement = ariaUtilsDom . getElementById ( controlledTabPanelId ) ; ariaTemplatesNavigationManager . focusFirst ( tabPanelElement ) ; } } }
Set the current tab as selected
@protected
Set the current tab as selected