FormidableLabs / FormidableLabs/react-live

Pasting a new line causes incorrect cursor movement

オープン
#409 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
bug
主要言語
TypeScript
スター
4.6k
フォーク
260
PR マージ指標
30日以内にマージされた PR はありません

説明

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

### Code Sandbox link

_No response_

### Bug report

Hi,

There is a strange behavior in the current 4.18.0 version. It is easily reproducible on the docs [website](https://commerce.nearform.com/open-source/react-live):

1. Copy a piece of code with a new line in it
2. Paste it somewhere in the editor several times in a row
3. See the cursor moves forward and breaks the code eventually

https://github.com/user-attachments/assets/8acc39af-7a63-4dea-9310-34d0774cf8f7

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。