logseq / logseq/logseq

References autocomplete modal (for `[[…]]`) doesn't close on mouse click

Open
#9,474 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

:type/enhancement block-ref editor:autocomplete
Dominant language
Clojure
Stars
45k
Forks
2.8k
Avg merge
1d 22h
Merged PRs (30d)
105

Description

Search first
  • I searched and no similar issues were found
What Happened?

References autocomplete modal doesn't close on mouse click. But only on certain condition: when there is another reference on this block. See the demo for details:

Reproduce the Bug
  1. Create block with text #test first second
  2. Double mouse click on first and press [ x2 times to enclose whole word in [[...]]
  3. Double mouse click on second and press [ x2 times to enclose whole word in [[...]]
  4. Result: second word is replaced by [[
Expected Behavior

second word is enclosed by [[ just like first

Desktop or Mobile Platform Information

MacOS v12.6
Logseq Desktop v0.9.8

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 Logseq Desktop on macOS using the numbered steps and confirm the second word is replaced by [[ when another reference exists in the block. Trace the references autocomplete modal's mouse-click behavior and verify that enclosing both words with [[...]] works as expected.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.