Skip to content

Bug: Selection a TableRow outside the nested table breaks the editor #8484

@levensta

Description

@levensta

Lexical version: 0.44

Steps To Reproduce

  1. Enable nested tables option
  2. Insert the table
  3. Insert the nested table in the outside table cell
  4. Press Shift + ArrowLeft
  5. After selecting a row in the nested table, press Shift + ArrowLeft again

Link to code example: https://playground.lexical.dev/?hasNestedTables=true#doc=H4sIAAAAAAAAE-1XTWvDMAz9L-9sipN1a-vrYOdBDjuUHlzba8LcKChqu1Dy30e_YClsbIXRUXIywn7S03tC4C2CL4Q4EysBZgsmkt3p8iJ6DiXMtBPMFHzBwUlBJUy5ilHhlXhpBQZQKEofSoHRCtJUAQaVZbtgW-VQWAeu98BEQcK7PB2R-hBm0sQdBK36msHVuf2-jNh5DC7EeFZmbt3bgmlV-keKxKdkjmJW2cOTPFgfTvbcKTBtjnffaXTzSiQdJS7kwbTp0Pjx1N28vOk_G7R-HfTroF8H_Tq4uhL6TwbtwjxnvTiKL4WXvIaZTlI1SWdnVvXu9O5c0M3-S9BRpFWItpbMroOHSUajcToe3mv9kCQKNa3Y7XDP0TYH9z6joQfD4UCj_QDPLBw-ewwAAA

The current behavior

An error occurs, the selection breaks, and the editor stops working

Screen.Recording.2026-05-09.at.02.58.28.mov

The expected behavior

The editor remains functional. Perhaps, any further selection should affect the external table

Impact of fix

This only reproduces to nested tables

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions