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

这是codesandbox.io页面。

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

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

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

你可以帮帮我吗?

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

最佳答案

将以下内容移到function Certify()的正文中

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

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


Check the correction

09-25 18:37
查看更多