Changeset 46438
- Timestamp:
- 10/08/2019 05:05:53 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/media-frame.js
r46363 r46438 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 … … 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
Note: See TracChangeset
for help on using the changeset viewer.