bindblur事件event.detail.cursor始终undefined

发布于 7 年前作者 hfeng5894 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

textarea的bindblur事件event.detail只携带了value,没有携带cursor值。

原本是想在textarea的光标处插入(粘贴)字符串。没找到现成方法,于是想在bindblur事件得到event.detail.cursor,从而实现光标处插入字符串的功能。却发现得不到cursor值。

  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

1 回复
xiuyingyin
xiuyingyin1 楼5 年前

你好,请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。