Skip to content

moveTableRow selection is wrong when moving rows with merged cells #306

@Aslam97

Description

@Aslam97

Description

When moving a row that contains merged cells using moveTableRow, the selection after the move becomes incorrect only if the target index contain a merge cell.
The row itself may move, but the resulting selection does not point to the expected row/cells.

Steps to Reproduce

  1. Create a table with merged cells.
  2. Place the selection in a row that contains merged cells.
  3. Call moveTableRow("down") or moveTableRow("up").
  4. Observe that the resulting selection is not aligned with the moved row.

Expected Behavior

  • The row should move correctly, and the selection should remain consistent with the moved row.

Actual Behavior

  • After the move, the selection points to the next index instead of original index.
Screen.Recording.2025-09-19.at.17.18.27.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions