feat: shift replace block while dropping - #205
Conversation
| newBlock.parentSlotName = blockToReplace.parentSlotName | ||
| } | ||
| parentComponent.replaceChild(blockToReplace, newBlock) | ||
| return parentComponent |
There was a problem hiding this comment.
Slot clone drops fragment edits
When Shift-replacing a slot block with a fragment-editable component, slot insertion clones newBlock, but the save callback targets the original instance, causing the edited content not to be applied.
Context Used: Guidelines for reviewing Frappe Framework applicat... (source)
Confidence Score: 3/5Fix slot replacement for fragment-editable components before merging, because saved edits can be silently discarded. Slot insertion clones the replacement block, but the save callback targets the original object and therefore cannot update the inserted slot content. Files Needing Attention: frontend/src/utils/useCanvasDropZone.ts Reviews (1): Last reviewed commit: "feat: shift replace block while dropping" | Re-trigger Greptile |
No description provided.