Skip to content

DOM not updating when using number modifier#13958

Description

@rzzf

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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