We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.TextArea placeholder={textAreaPlaceHolder} autoSize ref={textAreaRef} value={contentValue} onChange={e => { setContentValue(e.target.value); }} style={{ width: screenWidth * 0.67, backgroundColor: 'white', borderWidth: 1, borderColor: 'rgba(0,0,0,0.3)', borderRadius: 10, marginHorizontal: 6, }}></Input.TextArea> setContentValue('')之后不会显示placeholader的内容,只有在手动把输入框的内容全部删除,才会显示placeholder的内容
<Input.TextArea placeholder={textAreaPlaceHolder} autoSize ref={textAreaRef} value={contentValue} onChange={e => { setContentValue(e.target.value); }} style={{ width: screenWidth * 0.67, backgroundColor: 'white', borderWidth: 1, borderColor: 'rgba(0,0,0,0.3)', borderRadius: 10, marginHorizontal: 6, }}></Input.TextArea>
5.2.3
Android
npx react-native info
无
源文件链接:https://github.com/Escaay/EarthVillage/blob/main/pages/article/articleDetail/index.tsx
The text was updated successfully, but these errors were encountered:
刚才换成reactnative原生的TextInput试了一下,相同的代码TextInput在清空输入框后是可以显示placeholder的,应该是组件的问题
Sorry, something went wrong.
未能复现,请提供一个最小单元的测试用例
No branches or pull requests
💬 前提强调
🙋 描述详情/重现步骤
<Input.TextArea placeholder={textAreaPlaceHolder} autoSize ref={textAreaRef} value={contentValue} onChange={e => { setContentValue(e.target.value); }} style={{ width: screenWidth * 0.67, backgroundColor: 'white', borderWidth: 1, borderColor: 'rgba(0,0,0,0.3)', borderRadius: 10, marginHorizontal: 6, }}></Input.TextArea>
setContentValue('')之后不会显示placeholader的内容,只有在手动把输入框的内容全部删除,才会显示placeholder的内容
🔴 版本
5.2.3
💻 运行环境
Android
⚫️
npx react-native info
输出信息无
补充说明
源文件链接:https://github.com/Escaay/EarthVillage/blob/main/pages/article/articleDetail/index.tsx
The text was updated successfully, but these errors were encountered: