HarshKapadia2 / HarshKapadia2/preview-markdown

Prevent cursor jumping in `textarea`

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
bug enhancement
Dominant language
JavaScript
Stars
16
Forks
7
PR merge metrics
No merged PRs in 30d

Description

- On hitting Enter in the `textarea`, the `textarea` jumps to that line (brings it to the top of the box).
- This behaviour is not desired and should be stopped.
- The `textarea` might have to be converted into a [contenteditable](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable) `div`, but avoid that if possible.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the cursor-jumping behavior when pressing Enter in the textarea, then locate the textarea implementation in the preview-markdown application. Done means pressing Enter no longer moves the current line to the top of the box, while the existing Markdown preview behavior remains intact.

Written by the indexing model from the issue text.

Assessment

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