uiwjs / uiwjs/react-codemirror
Search query is lost on any edit
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:
- Open the search panel (
Ctrl+F) - Type any search query
- Make any change to the document
- The search panel disappears
- 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
- 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
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