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

[Bug]: Target width input clamps the value on every keystroke

オープン 初心者向け
#37 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@AnushreeKasturi がすでに取り組んでいます。

2026年10月17日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
82/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust

調査の方向性

crates/app/src/controls.rs:449-478を読み、特に目標幅の入力ハンドラーとそのprop:valueバインディングを確認してください。1000と入力して問題を再現し、表示値がいつ変わるかを確認してください。入力中は生の値を保持し、変更時またはフォーカスが外れたときに上限を適用してください。また、フィールドを空にしても目標幅が引き続き無効になることを確認してください。

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

説明

bug good first issue
What happened?

The target width input clamps its value on every keystroke. Typing "1000" does not work: after the first character "1" the value is clamped to the minimum (320), and the reactive prop:value binding rewrites the field. The user ends up with a value they did not type.

Steps to reproduce
  1. Open the app.
  2. Click the "Target width" input.
  3. Type 1000 and watch the field.
Expected behavior

The raw typed value stays in the field while typing, and clamping happens on change or blur. Changing the field to empty disables the target width (current behavior, keep it).

Actual behavior

on:input parses and clamps on every keystroke (crates/app/src/controls.rs:466-473), and prop:value immediately writes the clamped value back, producing results like 3200 instead of 1000.

Where did it go wrong?

UI controls / settings

Settings

Not applicable.

Browser

Any.

CodeFrame version

0.7.0

Console output or extra context

Reference: crates/app/src/controls.rs:449-478. Suggested fix: switch to on:change for clamping, or only clamp when the parsed value is out of range and the input is no longer focused.

主要言語
Rust
スター
1
フォーク
0
平均マージ
1日 7時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

suradet-ps/codeframe のほかの issue

suradet-ps/codeframe の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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