compat: v-model modifiers do not work on components #12652
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
scope: v2 compat
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:
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?The text was updated successfully, but these errors were encountered: