Skip to content

Commit

Permalink
Switch to isMenuOpen selector in roleAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
luisherranz committed May 30, 2023
1 parent b2c5118 commit 07b41f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/navigation/interactivity.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ store( {
selectors: {
core: {
navigation: {
roleAttribute: ( { context } ) =>
roleAttribute: ( { context, selectors } ) =>
context.core.navigation.overlay &&
context.core.navigation.isMenuOpen
selectors.core.navigation.isMenuOpen( { context } )
? 'dialog'
: '',
isMenuOpen: ( { context } ) =>
Expand Down

0 comments on commit 07b41f9

Please sign in to comment.