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