Skip to content

[Bug] Input.TextArea的placeholder在value设置(setState的方式)为空后不显示 #1400

Open
@Escaay

Description

@Escaay

💬 前提强调

  • I have searched the issues of this repository and believe that this is not a duplicate.

🙋 描述详情/重现步骤

<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的内容
25a5e60eee170c67b3e27c76a080c0a
473dccfefa34292093b3ebad4e7825f

🔴 版本

5.2.3

💻 运行环境

Android

⚫️ npx react-native info输出信息

补充说明

源文件链接:https://github.com/Escaay/EarthVillage/blob/main/pages/article/articleDetail/index.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions