Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Input 组件的 onFocus/onBlur 回调参数类型定义不准确 #37

Open
Chen0807AiLJX opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@Chen0807AiLJX
Copy link

描述问题
在使用 Input 组件的 onFocus 或 onBlur 回调函数时,尝试通过参数 e 获取 Input 的 value 值(即 e.target.value)时,遇到了类型错误:类型“EventTarget”上不存在属性“value”。

复现步骤
步骤:

  1. 使用 Input 组件
  2. 使用 onFocus 或 onBlur 回调的参数 e 获取 Input 的 value 值:e.target.value

期望结果
无TS类型错误

实际结果
TS报错:类型“EventTarget”上不存在属性“value”

环境信息

  • 操作系统: [MacOS]
  • 渠道: [H5]
  • 浏览器: [Chrome]
  • 版本: [1.2.8]

截图(可选)
image
image

@Chen0807AiLJX Chen0807AiLJX added the bug Something isn't working label Nov 6, 2024
@NeverEllipsis NeverEllipsis added the good first issue Good for newcomers label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants