input type="number" v-model changes missing from migration guide #32
Open
Description
In the Vue3 documentation, we can read that The number modifier is applied automatically if the input has type="number"
. This was not the case in Vue2. In Vue2 the value remained a string unless the .number
modifier was used explicitly.
Related: vuejs/vue#12914
However, changing it in v2 would potentially break a lot of people’s code relying on this behavior
And not mentioning it in the migration guide will also break people's code. It's one of those things that you don't notice until you try to call a string function on a number and crash.
Metadata
Assignees
Labels
No labels