Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug Report] 修复#2810的版本 x-input 在number型上某些浏览器不能正常更新值 #3199

Closed
mmagi opened this issue Oct 30, 2018 · 1 comment

Comments

@mmagi
Copy link

mmagi commented Oct 30, 2018

VUX version

2.9.2

OS/Browsers version

安卓/微信/X5内核浏览器/TBS内核版本044306/TBS包装层版本43610

Vue version

2.5.17

Code

<x-input v-model="a" type="number">

Steps to reproduce

在某些手机浏览器上输入数值,v-model不会更新值
调试可以发现报错
Failed to execute 'setSelectionRange' on 'HTMLInputElement'
修复#2810的时候用了setSelectionRange,但是对于number类型的input,某些浏览器不支持setSelectionRange
导致后续更新model的代码无法执行到

What is Expected?

输入后正常更新model的值

What is actually happening?

用户界面显示一切正常,但是model的值始终不发生改变

@mmagi
Copy link
Author

mmagi commented Oct 30, 2018

#3084 可以解决这个问题

@mmagi mmagi closed this as completed Oct 30, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant