uiwjs / uiwjs/react-codemirror

Search query is lost on any edit

Open
#404 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
161
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:

  1. Open the search panel (Ctrl+F)
  2. Type any search query
  3. Make any change to the document
  4. The search panel disappears
  5. Opening the search panel again shows a blank search query (the search query is lost)

Replicated on the react-codemirror demo editor: https://uiwjs.github.io/react-codemirror/
Does not happen for the official codemirror demo: https://codemirror.net/
I did not find a configuration option to change this behavior
Thus, seems to be a react-codemirror bug.

System:
macOS Venture
Chrome Beta 108

Contributor guide

No contributing guide indexed for this repository

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

Start by reproducing the behavior in the react-codemirror demo and compare it with the official CodeMirror demo, then trace how the search panel state changes when the document is edited. Done means editing no longer loses the existing search query and reopening the panel does not show a blank query.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
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.