Skip to content

Bug: Inconsistent column selection in tables (first cell skipped except last column) #8080

@aldoprogrammer

Description

@aldoprogrammer

Demo
Lexical version: latest

Steps To Reproduce

  1. Insert a 5×5 table.
  2. Select the first column from top to bottom — all cells selected ✅.
  3. Select the second column from top to bottom — the first cell is not selected, the rest are.
  4. Select the third and fourth columns — first cell not selected, rest are.
  5. Select the fifth (last) column — all cells selected ✅.
  6. Go back to the first column — now the first cell fails to select, rest are selected.

Link to code example: Lexical Playground

The current behavior

  • Only the last column consistently selects all cells.
  • Middle columns (2–4) never select the first cell after interacting with other columns.
  • First column works initially, but fails after selecting other columns.

The expected behavior

  • All columns should allow selecting all cells from top to bottom, consistently.

Impact of fix

  • Selection behavior in tables is inconsistent and can break multi-column operations.
  • Fixing this benefits anyone working with tables in Lexical (copy/paste, formatting, merging, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    tablesRelates to Lexical Tables

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions