🐛(Bug) Clicking a mention suggestion does nothing in comment sidebar threads

Open Beginner friendly
#3,034 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

@RoeeSivan is already working on this.

Since Nov 23, 2026.

  • #3055 by @RoeeSivan — open
  • #3059 by @sanketpatel32 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
react, typescript

Research direction

Start in src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Mention/Search.tsx at the dropdown Box around lines 355–360, then trace how its mouse events affect focus in the comment sidebar. Add the suggested focus-preserving behavior and verify that clicking a mention selects it while keyboard selection and screen reader combobox focus still work.

Written by the indexing model from the issue text.

Description

editor frontend

In a thread of the comments sidebar, clicking a user or doc in the "@" mention dropdown does nothing (keyboard selection works). The dropdown is a portalled Popover whose dropdown and cmdk list are focusable (tabIndex=-1), so mousedown moves focus out of .bn-thread, BlockNote's ThreadsSidebar onBlur unselects the thread, and the reply composer unmounts before click fires.
https://github.com/suitenumerique/docs/blob/0f8e7b38e44e6348a3ad4554fbd613c037948f9e/src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-inline-content/Mention/Search.tsx#L355-L360
The floating thread is not affected, as it is only used while the sidebar is closed (BlockNoteEditor).
Suggested fix: add onMouseDown={(e) => e.preventDefault()} on the dropdown Box in Search.tsx so focus stays in the search input; this also keeps the combobox focus for screen readers.

Dominant language
TypeScript
Stars
17k
Forks
705
Avg merge
4d 10h
Merged PRs (30d)
46

Getting set up

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.

More from suitenumerique/docs

All issues in suitenumerique/docs

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.