nextcloud / nextcloud/deck

Losing focus when mentioning users in comments

Open
#6,180 4 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: comments
Dominant language
JavaScript
Stars
1.4k
Forks
354
Avg merge
1d 10h
Merged PRs (30d)
43

Description

After mentioning users in comments the cursor jumps to the left oft the field. When typing, it jumps back behind the name where it should have been all the time.

However, when users after mentioning others try to move the cursor behind the mentioned user, they always lose focus and cannot type anything at all.

https://github.com/user-attachments/assets/b59775cf-eeb2-4c21-8c6b-dc6fb8774b23

Contributor guide

Open the contributing guide

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 issue in the comment field by mentioning a user, then try typing and placing the cursor after the mention. Trace the comment mention interaction and focus handling from there; done means the cursor stays focused, remains in the intended position, and typing works after a mention.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.