uni-app 在模拟器中点击 input 输入框控制台报错 而切换到上一版本则正常

uni-app 在模拟器中点击 input 输入框控制台报错 而切换到上一版本则正常

开发环境 版本号 项目创建方式
HbuilderX 3.1.12 -
PC 11.3 (20E232) -

操作步骤:

新建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)

更多关于uni-app 在模拟器中点击 input 输入框控制台报错 而切换到上一版本则正常的实战教程也可以访问 https://www.itying.com/category-93-b0.html

2 回复

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

更多关于uni-app 在模拟器中点击 input 输入框控制台报错 而切换到上一版本则正常的实战教程也可以访问 https://www.itying.com/category-93-b0.html


回退到上一版本……

回到顶部