OO.ui.IndexLayout.prototype.onStackLayoutFocus = function ( e ) {
    // Find the tab panel that an element was focused within
    const $target = $( e.target ).closest( '.oo-ui-tabPanelLayout' );
    for ( const name in this.tabPanels ) {
        // Check for tab panel match, exclude current tab panel to find only tab panel changes