Skip to content

Fix span metadata when inserting table rows and columns - #3453

Merged
Julia Roldi (juliaroldi) merged 3 commits into
masterfrom
u/juliaroldi/insert-columns
Sep 2, 2026
Merged

Fix span metadata when inserting table rows and columns#3453
Julia Roldi (juliaroldi) merged 3 commits into
masterfrom
u/juliaroldi/insert-columns

Conversation

@juliaroldi

@juliaroldi Julia Roldi (juliaroldi) commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Update insertTableColumn and insertTableRow so newly inserted cells do not inherit span metadata in the insertion direction. Inserted columns now clear spanLeft, and inserted rows clear spanAbove, preventing the new cells from being treated as continuations of existing merged cells.

Update the table insertion unit tests to cover inserting above, below, and to the right of cells with span metadata.

Before:
InsertInSplitCellsBug

After:
InsertInSplitCells

How to test

  1. Run yarn test:fast --testPathPattern="insertTable(Column|Row)Test".
  2. Insert a row or column next to a merged table cell and verify the new cells are independent in the insertion direction rather than extending the existing merge.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://microsoft.github.io/roosterjs/pr-preview/pr-3453/

Built to branch gh-pages at 2026-09-02 22:17 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@juliaroldi
Julia Roldi (juliaroldi) merged commit 7fd6465 into master Sep 2, 2026
8 checks passed
@juliaroldi
Julia Roldi (juliaroldi) deleted the u/juliaroldi/insert-columns branch September 2, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants