state update using react not working
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with the MarkdownEditor entry point and reproduce the cursor jump using the controlled value and onChange example in the issue. Inspect how state updates are applied to the editor; done means continuous typing preserves the editor focus and cursor position. No file or test path is provided, so the repository structure and existing editor tests must be located first.
Written by the indexing model from the issue text.
Description
const [mark, setMark] = useState('Enter Text Here');
const [visible, setVisible] = useState(true);
<div>
<label htmlFor="body">
Body:
</label>
<MarkdownEditor
value={mark}
visible={visible}
onChange={(value, viewUpdate) => setMark(value)}
height="500px"
/>
</div>
In the above code, when ever I start typing because of state update, the cursor moves out of the markdown window, so how can i type continuously?
- Dominant language
- TypeScript
- Stars
- 382
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
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.
More from uiwjs/react-markdown-editor
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
uiwjs/react-markdown-editor#241 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
uiwjs/react-markdown-editor#240 ·
-
Add Typing for Slots Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
uiwjs/react-markdown-editor#239 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
uiwjs/react-markdown-editor#238 · 2 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
uiwjs/react-markdown-editor#234 ·
All issues in uiwjs/react-markdown-editor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
0xMiden/bridge-portal#132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:tools bug good first issue help wanted priority:P2
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
newrelic-experimental/preflight#793 · 1 comment ·