Skip to content

DOM not updating when using number modifier #13958

@cszhjh

Description

@cszhjh

Vue version

3.5.22

Link to minimal reproduction

Playground

Steps to reproduce

  1. Enter 1a in the input field

  2. Notice that modelValue has been updated

  3. Blur the input or press Enter

What is expected?

Like the trim modifier, update the input value when the change event is triggered.

What is actually happening?

Data and view are out of sync

System Info

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Any additional comments?

In vue2 it works as expected.

Vue2 Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: v-model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions