Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Double-click and the selection moves the next node to inside the list. #6072

Open
1 task done
Gaurussel opened this issue Jan 31, 2025 · 1 comment
Open
1 task done
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@Gaurussel
Copy link

Affected Packages

core

Version(s)

latest

Bug Description

Double-click and the selection moves the next node inside the list.

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

Empty list item or delete list item, but not insert next node to list item.

Additional Context (Optional)

Screen.Recording.2025-01-31.at.11.29.31.mov

Dependency Updates

  • Yes, I've updated all my dependencies.
@Gaurussel Gaurussel added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels Jan 31, 2025
@Gaurussel Gaurussel changed the title [Bug]: Double-click and the selection moves the next node inside the list. [Bug]: Double-click and the selection moves the next node to inside the list. Jan 31, 2025
@guanriyue
Copy link
Contributor

This seems to be caused by the browser's default behavior.

Below is a screen recording to reproduce the issue. Note that you need to continuously click with the mouse to automatically select some content, and it is not a double-click.

2025-02-05.19.22.28.mov
  • On the first click, the selection changes to the mouse position.
  • On the second click, the selection changes to the word under the mouse.
  • On the third click, the selection expands to the entire paragraph.
  • On the fourth click, the selection remains on the paragraph but extends to an additional portion.

I suspect that the extra selection is designed to support modifying the selection using keyboard.

The same issue exists in Remirror.

Even using the most basic contenteditable, the same behavior occurs. It seems to be the browser's default behavior.

2025-02-05.19.18.38.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

2 participants