Query Block isn't fully deleted after initial removal #31961
Labels
[Block] Query Loop
Affects the Query Loop Block
[Type] Bug
An existing feature does not function as intended
Description
When deleting the query block after selecting one of the newer patterns, the Query Block isn't fully deleted. Instead it must go through an additional deletion process to properly remove it. cc @kjellr @ntsekouras as I think this is due to adding in patterns somehow. This only seems to happen if you browse through the different pattern options, select one, and then delete the query block. In case it helps, this feels very similar to this button block issue where phantom buttons appear after deletion due to the template a button block lives in: #28217
Strangely, this doesn't happen with every single pattern as you can see in the video below.
Step-by-step reproduction instructions
Expected behaviour
Expect for the Query Block to be deleted.
Actual behaviour
Query block is not deleted fully.
Screenshots or screen recording (optional)
This video shows the full experience running from the problem not occurring (query block deleting without any issues), the query block deletion leading to a return to the setup screen, and the query block deletion leading to a seemingly simplified pattern rather than removal:
Screen.Recording.2021-05-18.at.6.02.48.PM.mov
WordPress information
Device information
The text was updated successfully, but these errors were encountered: