Skip to content

input type="number" v-model changes missing from migration guide #32

Open
@dumbasPL

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions