Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Code Editor becomes unresponsive when 'value' prop is not empty

オープン
#711 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

issue にリンクされている再現手順から始め、報告された CodeMirror の選択に関する stack trace を調査します。空でない value prop を使って caret の移動と行編集の手順を再現します。完了の条件は、エディターが応答可能なままで、IndexSizeError が発生しないことです。

索引モデルが issue の本文から書いたものです。

説明

If 'value' prop is defined for the codemirror then following bugs occur:

  • sometimes we cannot use caret navigation for first word of code editor
  • if we delete the entire line then add just single word then editor becomes unresponsive... after that it either removes the word after like 1 min or throws the following error:

IndexSizeError
Failed to execute 'collapse' on 'Selection': The offset 4 is larger than the node's length (0).
▼ 6 stack frames were expanded.
at eval (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:2520:18
at DOMObserver.ignore (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5690:14
at DocView.updateSelection (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:2504:26
at EditorView.update (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:6008:20
at DOMObserver.flush (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5797:50
at MutationObserver.eval (https://slvju.csb.app/node_modules/
codemirror/view/dist/index.js:5561:263

https://github.com/user-attachments/assets/82ebf7a9-32f0-4afc-a175-ceb71f4496e2

主要言語
TypeScript
スター
2.3k
フォーク
162
平均マージ
2時間 41分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uiwjs/react-codemirror のほかの issue

uiwjs/react-codemirror の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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