Skip to content

Commit

Permalink
Browse mode Navigation: Fix broken submenu items (#50551)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera authored May 11, 2023
1 parent ab5c883 commit d24ac78
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from '@wordpress/block-editor';
import { useDispatch, useSelect } from '@wordpress/data';
import { createBlock } from '@wordpress/blocks';
import { Popover } from '@wordpress/components';
import { Popover, VisuallyHidden } from '@wordpress/components';
import { __unstableStripHTML as stripHTML } from '@wordpress/dom';
import { useCallback, useEffect, useState } from '@wordpress/element';
import { store as coreStore } from '@wordpress/core-data';
Expand Down Expand Up @@ -191,11 +191,11 @@ export default function NavigationMenuContent( { rootClientId, onSelect } ) {
renderAdditionalBlockUI={ renderAdditionalBlockUICallback }
/>
) }
<div style={ { visibility: 'hidden' } }>
<VisuallyHidden aria-hidden="true">
<BlockTools>
<BlockList />
</BlockTools>
</div>
</VisuallyHidden>
</>
);
}

0 comments on commit d24ac78

Please sign in to comment.