Ticket #47149: 47149.7.diff
File 47149.7.diff, 1.1 KB (added by , 6 years ago) |
---|
-
src/js/media/views/media-frame.js
103 103 104 104 tabPanelEl.removeAttr( 'role aria-labelledby tabindex' ); 105 105 106 if ( this. menuView && this.menuView.isVisible ) {106 if ( this.state().get( 'menu' ) && this.menuView && this.menuView.isVisible ) { 107 107 ariaLabelledby = 'menu-item-' + stateId; 108 108 109 109 // Set the tab panel attributes only if the tabs are visible. … … 129 129 130 130 tabPanelEl.removeAttr( 'role aria-labelledby tabindex' ); 131 131 132 // On the Embed view the router menu is hidden.133 if ( 'embed' === this.content._mode ) {134 return;135 }136 137 132 // Set the tab panel attributes only if the tabs are visible. 138 if ( this. routerView && this.routerView.isVisible && this.content._mode ) {133 if ( this.state().get( 'router' ) && this.routerView && this.routerView.isVisible && this.content._mode ) { 139 134 ariaLabelledby = 'menu-item-' + this.content._mode; 140 135 141 136 tabPanelEl