2***@qq.com
2***@qq.com
  • 发布:2018-08-25 10:26
  • 更新:2018-09-05 11:15
  • 阅读:1962

【报Bug】textarea标签输入汉字bug

分类:uni-app

详细问题描述
[内容]
真机调试时在textarea输入汉字控制台会产生如下bug
该bug在电脑模拟器调试以及小程序调试中暂时没有
补充内容 安卓手机同样存在问题
代码:
<textarea class='right address' name="address" v-model="formData.address" :value="formData.address" placeholder='请输入详细地址信息,如道路、门牌号、小区、楼栋号、单元室等' placeholder-class='placeClass' ></textarea>
或者普通的
<textarea/>
苹果错误码:
10:17:01.024 [ERROR] : TypeError: this["_inputKey"] is not a function. (In 'this"_inputKey"', 'this["_inputKey"]' is undefined)file name:__uniappview.htmlline no:1
10:17:01.047 [ERROR] : _compositionend@__uniappview.html:1:577174
10:17:01.048 _compositionend@[native code]
安卓错误码:
10:36:53.781 TypeError: undefined is not a function
10:36:53.802 at test.window.exparser.registerElement.methods._compositionend (uniapp://ready:176:17379) at uniapp://ready:179
10:36:53.827 Uncaught TypeError: undefined is not a function at uniapp://ready:176
10:37:01.634 [object Object] at pages/me/address/addressPage.vue:125
10:37:01.655 {"Id":"23","user_id":"17","province_id":"null","province_name":"黑龙江省","city_id":"null","city_name":"哈尔滨市","area_id":"null","area_name":"南岗区","address":"黑龙江省哈尔滨市南岗区|黑龙江省哈尔滨市南岗区-学府路74号好","postalcode":"150300","recive_person_name":"张云鹏","phone":"18945051918","remark":"null","is_default":"1"} at pages/me/address/addressPage.vue:159
10:37:04.522 [object Object] at pages/me/address/addressPage.vue:125
10:37:04.544 {"Id":"23","user_id":17,"province_id":"null","province_name":"黑龙江省","city_id":"null","city_name":"哈尔滨市","area_id":"null","area_name":"南岗区","address":"黑龙江省哈尔滨市南岗区|黑龙江省哈尔滨市南岗区-学府路74号好","postalcode":"150300","recive_person_name":"张云鹏","phone":"18945051918","remark":"null","is_default":"1"} at pages/me/address/addressPage.vue:159
10:38:08.086 TypeError: undefined is not a function
10:38:08.108 at test.window.exparser.registerElement.methods._compositionend (uniapp://ready:176:17379) at uniapp://ready:179
10:38:08.176 Uncaught TypeError: undefined is not a function at uniapp://ready:176
10:38:08.370 TypeError: undefined is not a function
10:38:08.394 at test.window.exparser.registerElement.methods._compositionend (uniapp://ready:176:17379)
10:38:08.418 at test.window.exparser.registerElement.methods.defaultValueChange (uniapp://ready:176:21848)
10:38:08.441 at Function.r.safeCallback (uniapp://ready:167:25749)
10:38:08.486 at a.doUpdates (uniapp://ready:168:2837)
10:38:08.507 (uniapp://ready:168:27036)
10:38:08.530 at t.applyProperties (uniapp://ready:177:10157)
10:38:08.553 at Function.r.value (uniapp://ready:177:15590)
10:38:08.574 at e.r.value (uniapp://ready:177:15054)
10:38:08.599 at uniapp://ready:177:16871 at uniapp://ready:179
10:38:08.621 Uncaught TypeError: undefined is not a function at uniapp://ready:176
10:38:15.528 TypeError: undefined is not a function
10:38:15.554 at test.window.exparser.registerElement.methods._compositionend (uniapp://ready:176:17379) at uniapp://ready:179
10:38:15.600 Uncaught TypeError: undefined is not a function at uniapp://ready:176
10:38:30.693 TypeError: undefined is not a function
10:38:30.714 at test.window.exparser.registerElement.methods._compositionend (uniapp://ready:176:17379) at uniapp://ready:179
10:38:30.769 Uncaught TypeError: undefined is not a function at uniapp://ready:176
10:38:30.916 TypeError: undefined is not a function
10:38:30.938 at test.window.exparser.registerElement.methods._compositionend (uniapp://ready:176:17379)
10:38:30.962 at test.window.exparser.registerElement.methods.defaultValueChange (uniapp://ready:176:21848)
10:38:30.983 at Function.r.safeCallback (uniapp://ready:167:25749)
10:38:31.026 at a.doUpdates (uniapp://ready:168:2837)
10:38:31.047 (uniapp://ready:168:27036)
10:38:31.067 at t.applyProperties (uniapp://ready:177:10157)
10:38:31.089 at Function.r.value (uniapp://ready:177:15590)
10:38:31.112 at e.r.value (uniapp://ready:177:15054)
10:38:31.134 at uniapp://ready:177:16871 at uniapp://ready:179

重现步骤
[步骤]
在textarea 其他条件均无影响,只要使用苹果键盘输入汉字
[结果]
错误码:
10:17:01.024 [ERROR] : TypeError: this["_inputKey"] is not a function. (In 'this"_inputKey"', 'this["_inputKey"]' is undefined)file name:__uniappview.htmlline no:1
10:17:01.047 [ERROR] : _compositionend@__uniappview.html:1:577174
10:17:01.048 _compositionend@[native code]
[期望]
输入时不报错这样就可以将输入的内容通过v-model或change方法绑定到需要的变量上
运行环境
[系统版本]
真机系统 ios 12.0(16A5362a)
Mac 版本 10.13.4 (17E199)
[浏览器版本]
uniapp集成
[IDE版本]
hbuilder x 0.1.47.20180821-alpha
[mui版本]

附件
[代码片段]
任何代码中使用 <textarea/>标签
[安装包]

联系方式
18945051918
[QQ]
273274517
[电话]
18945051918

2018-08-25 10:26 负责人:无 分享
已邀请:
DCloud_UNI_GSQ

DCloud_UNI_GSQ

已定位bug,下个版本将修复。

DCloud_UNI_GSQ

DCloud_UNI_GSQ

已解决,更新新版HBuilderX即可。

该问题目前已经被锁定, 无法添加新回复