Skip to content

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

@markrian

Description

@markrian

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

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy