Skip to content

Commit

Permalink
Add scrollContainer to deps array
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewserong committed Jan 4, 2023
1 parent e32d52f commit f892ec1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function useBlockToolbarPopoverProps( {
toolbarHeight
)
),
[ contentElement, selectedBlockElement, toolbarHeight ]
[ contentElement, selectedBlockElement, scrollContainer, toolbarHeight ]
);

// Update props when the block is moved. This also ensures the props are
Expand Down

1 comment on commit f892ec1

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3835393294
📝 Reported issues:

Please sign in to comment.