Skip to content

Commit

Permalink
Gutenberg: update switch to classic menu options selector
Browse files Browse the repository at this point in the history
  • Loading branch information
gwwar committed Jul 16, 2019
1 parent 5871bd3 commit 164bd4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/wpcom-block-editor/src/common/switch-to-classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function addSwitchToClassicButton() {
$( '#editor' ).on( 'click', '.edit-post-more-menu .components-button', () => {
// We need to wait a few ms until the menu content is rendered
setTimeout( () => {
$( '.edit-post-more-menu__content .components-menu-group:last-child > div[role=menu]' )
.append( `
//role may be 'menu' or 'group', depending on the Gutenberg version
$( '.edit-post-more-menu__content .components-menu-group:last-child > div[role]' ).append( `
<a
href="${ wpcomGutenberg.switchToClassic.url }" target="_top" role="menuitem"
aria-label="${ wpcomGutenberg.switchToClassic.label }"
Expand Down

0 comments on commit 164bd4d

Please sign in to comment.