textarea上绑定了bindlinechange事件真机上失效?

发布于 8 年前作者 yefang2051 次浏览最后编辑 8 年前来自 issues

textarea上绑定了bindlinechange事件

// 输入框行数变换 lineChange: function(e) { let that = this; if (e.detail.lineCount == 2) { that.setData({ lineHeight: true }) } else { that.setData({ lineHeight: false }) } },


在开发工具上是没问题的,但是到真机上就没用,还是默认的lineheight


1 回复
longyong
longyong1 楼6 年前

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html