michael / michael/svedit

Bug: Double click on last Text node selects next sibling block too

Open
#6 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
675
Forks
18
Avg merge
5h 11m
Merged PRs (30d)
1

Description

A double click on the title <Text> element selects only the current block:

Selection: {"type":"container","path":["body"],"anchor_offset":4,"focus_offset":5}

However a double click on the description <Text> element that follows, selects both the current block and next block

Selection: {"type":"container","path":["body"],"anchor_offset":4,"focus_offset":6}

https://github.com/user-attachments/assets/6bafe9a4-4028-466d-bb1d-a6b3f51f6cd7

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the title and description double-click cases in the Svelte editor and inspect the reported Selection paths and offsets. No file or test is named in the issue, so trace the selection handling from the editor entry point. Done means double-clicking the description selects only its current block, matching the title behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.