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

[FR]: textarea组件placeholder的空字符串处理 #2747

Closed
henryzp opened this issue Nov 13, 2024 · 0 comments · Fixed by #2748
Closed

[FR]: textarea组件placeholder的空字符串处理 #2747

henryzp opened this issue Nov 13, 2024 · 0 comments · Fixed by #2748
Assignees

Comments

@henryzp
Copy link

henryzp commented Nov 13, 2024

这个功能解决了什么问题?

目前input组件的placeholder是处理了,代码如下:

placeholder={
     placeholder === undefined ? locale.placeholder : placeholder
}

而textarea没做这样的处理:

placeholder={placeholder || locale.placeholder}

导致的结果是传入空的placeholder替代不了老的placeholder

你期望的组件设计是怎样的?

就按照input组件的写法,即可。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants