-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patterns: prevent Classic Block from being dragged into a Sync Pattern Block #52132
Comments
Is this a bug or a feature? cc @aaronrobertshaw I'm wondering if there is a technical reason reason why Classic blocks shouldn't live within a pattern? |
Good question @ramonjd. I'm not aware that we've changed anything in terms of what may or may not be dragged into synced patterns (formerly reusable blocks). I'd need to take a look at the Classic block but I suspect that it might have Following that, it probably then makes sense it would be dropped into an existing pattern as a HTML block. All that is a bit of speculation at the moment so take it with a grain of salt. This issue has been added to the Patterns tracking issue. |
I have taken this off the 6.3 board. This is an existing issue with 6.2.2 reusable blocks, and it doesn't seem like there is an existing mechanism for stopping a block from being dragged into a specific parent. The ideal solution would be to have the reverse of the block parent param, eg. |
It'd probably be possible to prevent it as part of the general (list view and canvas) drag and drop mechanism, which I think uses the Having said that, this seems like it's not a priority, and I wonder if there's even any harm in it. Would need to find out the original motivation for It'll show as an HTML block in the site editor as the classic block isn't supported there. The HTML block is used as the freeform handler. |
Description
The Classic Block can't be turned into a pattern, which I assume is an intentional choice. However, it can still be dragged into an existing Synced Pattern Block, allowing the user to save that Pattern with a Classic Block.
In the site editor, the Classic Block will turn into an HTML Block, which makes it more confusing.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
CleanShot.2023-06-29.at.17.50.08.mp4
Environment info
Gutenberg 16.1, WordPress 6.2.2
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: