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

[Input 输入框] Value为null时,计算出的输入长度是4 #2401

Closed
souselesslove opened this issue Feb 16, 2023 · 3 comments
Closed
Labels
🐞 bug Something isn't working to be published to be published

Comments

@souselesslove
Copy link

tdesign-vue-next 版本

1.0.7

重现链接

No response

重现步骤

No response

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

Input 输入框
image
只判断了undefined,未判断null,使用String()转换就会把null变成'null'

@github-actions
Copy link
Contributor

👋 @souselesslove,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@chaishi chaishi added the 🐞 bug Something isn't working label Feb 16, 2023
@chaishi
Copy link
Collaborator

chaishi commented Feb 16, 2023

null 的数据类型是 object,不太符合 input 对于 string 类型的要求,可以先设置 undefined 解决问题

@chaishi
Copy link
Collaborator

chaishi commented Feb 16, 2023

已修复 null 长度计算问题,resolved in #2402

预计下周二发布

@chaishi chaishi added the to be published to be published label Feb 16, 2023
@github-actions github-actions bot mentioned this issue Feb 17, 2023
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working to be published to be published
Projects
None yet
Development

No branches or pull requests

3 participants