References autocomplete modal (for `[[…]]`) doesn't close on mouse click
Open
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
- Create block with text
#test first second - Double mouse click on
firstand press[x2 times to enclose whole word in[[...]] - Double mouse click on
secondand press[x2 times to enclose whole word in[[...]] - Result:
secondword 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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