reactjs / reactjs/react.dev

Add change vs input event description

未关闭
#619 1 条评论 5 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
11.8k
派生
7.9k
平均合并
1 天 11 小时
30 天内合并 PR
11

描述

The Synthetic Events docs for form events points to the Forms doc page as a reference for onChange, onInput, onInvalid, and onSubmit, but the Form page does not go into any detail about these events, and more importantly, how React's change and input events differ from the DOM events of the same name.

It appears a small note used to exist in the Form doc, but has been removed.

A short note about the change event exists in the DOM Elements doc. This was not an obvious place to look to for this information to me, and it does not address the input event. At the very least, this should probably be link to in the Synthetic Events doc, if no other changes are made.

I would like to see a more thorough description of the change and input events and when to use them in the Form doc.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 issue 中链接的 Synthetic Events form-events 部分、Forms documentation 和 DOM Elements onChange 部分开始。将它们当前的覆盖范围与 issue 中要求区分 React 的 change 事件和 input 事件进行比较,并检查所引用的 pull request,了解之前的措辞。完成的标准是 Forms documentation 解释这两个事件以及何时使用它们,或者明确链接到该解释。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react
领域
documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。