Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Format toolbar: prevent mousedown triggering selection #11902
If the format toolbar is positioned over another component that has
Here you can see that click-dragging in the toolbar selects the underlying blocks, removing the toolbar.
This PR stops the
How has this been tested?
The problem is demonstrated in #11087 where a cover image block is created in such a way that clicking in the format toolbar and moving the mouse triggers a selection of the underlying blocks.
To test, follow the steps in #11087 and confirm that toolbar remains in place when the mouse button is down over a toolbar button and you then move the mouse.
Types of changes
This should be a non-breaking bug fix. I've only applied the wrapper to the inline toolbar, as I don't think it's necessary elsewhere. It shouldn't affect anything else inside the toolbar.