fix(ui): rerender pasted block rows#17379
Open
AkhilTrivediX wants to merge 2 commits into
Open
Conversation
AkhilTrivediX
requested review from
AlessioGr,
JarrodMFlesch and
jacobsfletch
as code owners
July 17, 2026 10:10
Contributor
|
Can you add a e2e test that shows the failure before this change was made? |
Author
|
Added an end-to-end regression assertion in The existing same-row copy/paste scenario now verifies that the block's rich-text editor is visible both before and after pasting the copied row back onto itself. This covers the blank block-body behavior caused by retaining The update is in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lastRenderedPathmetadata when serializing copied form fields and nested rows.Root cause
Clipboard data preserved render-location metadata while intentionally omitting non-serializable custom components. When a copied block row was pasted back to the same path, the stale render path matched the target path and skipped the server render required to restore those components.
Fixes #17375.
Validation
pnpm exec vitest run --project unit packages/ui/src/elements/ClipboardAction/mergeFormStateFromClipboard.spec.ts --reporter=dotpnpm exec prettier --check packages/ui/src/elements/ClipboardAction/mergeFormStateFromClipboard.ts packages/ui/src/elements/ClipboardAction/mergeFormStateFromClipboard.spec.ts