Skip to content

compat: v-model modifiers do not work on components #12652

Open
@markrian

Description

Vue version

3.5.13

Link to minimal reproduction

https://codepen.io/markrian/pen/mybremp

Steps to reproduce

Enter numbers into the inputs. The displayed bound values should be numbers, not strings.

For instance:

Expected Actual
Screenshot from 2025-01-06 15-35-10 Screenshot from 2025-01-06 15-34-58

What is expected?

v-model modifiers should work when used on components under @vue/compat.

What is actually happening?

v-model modifiers do not work when used on components under @vue/compat.

System Info

No response

Any additional comments?

You can see the behaviour working as expected under Vue 2 and Vue 3 (proper).

It seems this behaviour was fixed on Vue 3 proper in #2348. Perhaps similar treatment needs to be done for __COMPAT__ code paths?

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: v2 compat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions