Skip to content

Bug: Click-and-drag text selection inside table cells doesn't work in presentation editor #2843

@MatteoDevelop

Description

@MatteoDevelop

Type

  • Bug

Description

When using the presentation editor (paginated layout), click-and-drag to select text works perfectly in normal paragraphs outside of tables. However, inside table cells, click-and-drag text selection does not work properly — the selection either doesn't start, doesn't extend, or behaves erratically.

Single click to place cursor inside a table cell works. Bold/Italic formatting works. The issue is specifically with mouse drag selection within table cell content.

Current Behavior

Click and drag inside a table cell does not properly select text. The selection range doesn't follow the mouse as expected.

Expected Behavior

Click-and-drag text selection inside table cells should behave the same as outside tables — selecting text from the mousedown position to the current mouse position.

Steps to Reproduce

  1. Load a DOCX document containing tables with text
  2. Try to select text by clicking and dragging inside a table cell
  3. Compare with selecting text outside tables (which works correctly)

SuperDoc Version

1.26.0-next.19

Browser & Version

Chrome (latest)

OS

macOS

Additional Context

The data-table-boundaries attribute on .superdoc-table-fragment elements contains correct column/row boundary data, so the hit-testing metadata appears to be present.

Checklist

  • Tested with latest version
  • Checked for duplicates
  • Added relevant labels

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions