Patterns: Unable to insert pattern in nested location #61381
Labels
[Feature] Inserter
The main way to insert blocks using the + button in the editing interface
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Type] Bug
An existing feature does not function as intended
Description
In the latest Gutenberg, when you try to insert a pattern from the main inserter, the root block to which the block belongs is focused, even if a nested block has focus before the insertion, so the pattern is always inserted at the root level. Masu. Therefore, if you want to insert a pattern in a nested location, you must insert the pattern at the root level and then move the pattern.
Step-by-step reproduction instructions
Note: This issue reproduces in both the site editor and post editor. In the site editor, the canvas will zoom out when you select a pattern category from the main inserter.
Screenshots, screen recording, code snippet
Expected (WP6.5)
The pattern is inserted immediately after the block that actually has focus.
178877c55286641b253462f9ce26492a.mp4
Actual (Latest Gutenberg)
Patterns are always inserted immediately after the root block.
actual.mp4
Environment info
No response
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: