Dragging patterns in the block library causes an extra scrollbar to become visible #44866
Labels
[Feature] Drag and Drop
Drag and drop functionality when working with blocks
[Feature] Inserter
The main way to insert blocks using the + button in the editing interface
[Type] Bug
An existing feature does not function as intended
Description
Note that #44853 solved a similar issue. This one is a little different. It looks like the
.components-draggable__clone
element that's appended to the body while dragging a pattern causes the<body>
element itself to show a scrollbar.I'm not sure why this is something that only happens when dragging patterns, while dragging blocks from the block library doesn't cause the same bug.
Step-by-step reproduction instructions
To test this more clearly on a mac, adjust your OS settings:
System Preferences > General > set 'Show scroll bars' to 'Always'
Screenshots, screen recording, code snippet
Kapture.2022-10-11.at.15.00.28.mp4
Environment info
Mac OS / Brave / Gutenberg
trunk
From what I can tell this doesn't happen in WordPress 6.1 beta 3, so it could be a relatively recent bug.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: