Skip to content

Behavior change v-model on input type number cast value to number by defualt #5284

Open
@eliran-positive

Description

@eliran-positive

Version

3.2.26

Reproduction link

jsfiddle.net/8vqaotbx/1/

Steps to reproduce

create input element type number
the value cast to number type
On Vue version 2 it not do it by defualt , it is big chage i have big project that expected the value return is string

What is expected?

Mybe can add to core modifier numeric that not cast the value to number.
Or add flag that Vue not do it by defualt

What is actually happening?

v-model cast value of input number to number type


Metadata

Metadata

Assignees

No one assigned

    Labels

    need guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.scope: v-model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions