Skip to content

Commit

Permalink
correctly determine if nav has hidden elements
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanales committed Feb 22, 2021
1 parent ab99c07 commit 98c55db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/use-autohide.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function useAutohide( clientId, innerBlocks, ref ) {
wrapped (hidden) elements.
*/
const isWrapping = Object.values( visibilityMap ).some(
( item ) => item.isHidden
( isHidden ) => isHidden
);

setState( {
Expand Down

0 comments on commit 98c55db

Please sign in to comment.