textarea 无法清空页面的内容
发布于 5 年前 作者 yangding 7514 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

<view class=“textarea-wrp”>

<textarea placeholder=“请输入评论的内容” class=“my-textarea” value="{{msg}}"

cursor-spacing=“10px” bindfocus=“inputFocus” bindblur=“inputBlur”

bindinput=“sendMessage” focus="{{focus}}" show-confirm-bar="{{false}}" name=“textarea” >

</textarea>

当我在真机(小米8)上测试时发现,用手机键盘输入文字,点击发送,需要清空页面的内容,后台日志打印,绑定的msg已经为空字符串,但页面仍然显示原来的内容。

  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo
1 回复

你好,现在还有这个问题么?

回到顶部