Closed k4rz4 closed 5 years ago
2.5.17
https://jsfiddle.net/48r5zeLy/2/
v-model on input field converts variable from number to string.
For instance i want to send some data to api and i have declared type of item in object as 'Number', should stay as number
Var type is converted to 'String'
Use the .number modifier on v-model
.number
v-model
Remember you can use the forum or the Discord chat to ask quick questions!
Great! Thanks
Version
2.5.17
Reproduction link
https://jsfiddle.net/48r5zeLy/2/
Steps to reproduce
v-model on input field converts variable from number to string.
What is expected?
For instance i want to send some data to api and i have declared type of item in object as 'Number', should stay as number
What is actually happening?
Var type is converted to 'String'