javascript - 为什么它不连续写入文本字段?

标签 javascript reactjs graphql material-ui

我想制作页面来获取用户信息。

这是codesandbox.io页面。

https://codesandbox.io/s/material-demo-z1x3q?fontsize=14

当我在 성별* 文本字段中连续输入“d”时。

但我只能输入一次“d”。 如果我想输入更多内容,我必须单击 성별* 文本字段,然后输入“d”

你能帮我吗?

没有错误消息。只是不要连续写入。

最佳答案

将以下内容移至函数 Certify() 的主体内

  const gender = useinput("");
  const birthday = useinput("");
  const phone = useinput("");

  const certifys = [
    { key: "성별", state: gender },
    { key: "생일", state: birthday },
    { key: "번호", state: phone }
  ];

Check the correction

关于javascript - 为什么它不连续写入文本字段?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57345976/

相关文章:

reactjs - 无法查询类型 "allMdx"上的字段 "Query"

javascript - Passport app.use() 回调未收到 Req 和 Res 参数

Javascript 匹配 - 包含 2 个关键字的任何内容,忽略 1 个关键字的任何内容

javascript - 在进行缓存的 Ajax 调用时如何避免竞争条件

javascript - 如何查找对象数组中的属性并将这些对象移动到对象中的另一个数组?

javascript - React & firebase-未捕获的 TypeError : Cannot read property 'setState' of undefined

graphql - 如何将现有的 dynamo db 与 AWS Amplify 和 graphql 结合使用

javascript - 我没有得到 Nodejs npm 包 https 的 https.get() 与 https.request() 方法之间的区别

javascript - 使用 "nested"获取设置钩子(Hook)时,React、Axios、PokeAPI 返回未定义

node.js - 如何在 npm 脚本中使用环境变量