-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when applied on range input v-model directive use string as value type instead of number #3830
Comments
By default, when the PS: Hey, you're brasilian! why didn't you asks that question for us first? is not a bug xD |
Hi, thanks for filling this issue. To work around this, you can use |
@fnlctrl This is incorrect. a |
|
Those are part of the HTML5 spec, and I think there's no real reason for supporting non-HTML5 browsers these days is it? But this would probably mean a new major version anyway as it's a change in behavior... |
Just ran into this. I understand that this is by design from the perspective of Vue developers, but from the perspective of a user, it seems like this is bound to be confusing - who would ever want to use a slider input as a string? I would think that having Vue implicitly use v-model.value for range inputs would lead to the least amount of surprise. Just wanted to cast my 2 cents in with @danielgindi . |
Vue.js version
2.0.1
Reproduction Link
https://jsfiddle.net/dede89/4tquo6sx/
Steps to reproduce
Given a input range with a v-model directive.
Click on the input range to change the value.
What is Expected?
After updating the type of the value should be number.
What is actually happening?
The type of the value is string.
The text was updated successfully, but these errors were encountered: