哥谭市长江大桥
哥谭市长江大桥
  • 发布:2021-04-29 13:39
  • 更新:2021-05-13 00:46
  • 阅读:643

【报Bug】在模拟器中点击input输入框,在控制台会报错,切换到上一版本就完全正常

分类:HBuilderX

产品分类: HbuilderX

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 11.3 (20E232)

HBuilderX版本号: 3.1.12

操作步骤:

新建vue页面,加入input控件,模拟器运行,点击input输入框

预期结果:

正常情况下是可以输入内容,并且控制台不会有任何内容输出

实际结果:

控制台报错,错误内容如上

bug描述:

在模拟器中点击input输入框,在控制台会报错。

切换到上一版本就完全正常。


13:34:11.648 [Vue warn]: Error in v-on handler: "InvalidStateError: Failed to read the 'selectionEnd' property from 'HTMLInputElement': The input element's type ('number') does not support selection."

found in

---> at pages/user/setting.vue
13:34:11.649 [system]DOMException: Failed to read the 'selectionEnd' property from 'HTMLInputElement': The input element's type ('number') does not support selection.
at VueComponent._onBlur (http://localhost:8080/static/js/chunk-vendors.js:98:446159)
at invokeWithErrorHandling (http://localhost:8080/static/js/chunk-vendors.js:5212:26)
at HTMLInputElement.invoker (http://localhost:8080/static/js/chunk-vendors.js:5537:14)
at HTMLInputElement.original._wrapper (http://localhost:8080/static/js/chunk-vendors.js:10415:25)
13:34:15.337 [Vue warn]: Error in v-on handler: "InvalidStateError: Failed to read the 'selectionEnd' property from 'HTMLInputElement': The input element's type ('number') does not support selection."

found in

---> at pages/user/setting.vue
13:34:15.338 [system]DOMException: Failed to read the 'selectionEnd' property from 'HTMLInputElement': The input element's type ('number') does not support selection.
at VueComponent._onBlur (http://localhost:8080/static/js/chunk-vendors.js:98:446159)
at invokeWithErrorHandling (http://localhost:8080/static/js/chunk-vendors.js:5212:26)
at HTMLInputElement.invoker (http://localhost:8080/static/js/chunk-vendors.js:5537:14)
at HTMLInputElement.original._wrapper (http://localhost:8080/static/js/chunk-vendors.js:10415:25)


上面是点击input之后控制台的报错内容,为什么是两遍呢,因为我在点击控制台准备选择内容进行复制到时候它自动又多出一份。

2021-04-29 13:39 负责人:无 分享
已邀请:
薄荷君

薄荷君

我也遇到了....这个咋解决...

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