antonmedv / antonmedv/codejar

Backspace forces cursor to end of text (Firefox)

Open
#115 3 comments 1 reaction 0 assignees View on GitHub
firefox
Dominant language
TypeScript
Stars
2k
Forks
123
PR merge metrics
No merged PRs in 30d

Description

### Repro steps

Using Firefox 124/125, visit https://medv.io/codejar/, focus in the editor and delete all the code.

Enter the following code:

```javascript
const greet = (name) => {
console.log(5);
}

greet("World");
```

Place the cursor after the `5` and hit the Backspace key on your keyboard.

### Expected

Deletes `5` and cursor remains between parentheses.

### Actual

Deletes `5` and cursor jumps to the end of the file.

### Environment

Firefox 124/125, Windows/macOS.

Does not reproduce in Chrome or Safari.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.