-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v-model modifiers can break emitting an update event if some parameter is not a string #5765
Labels
Comments
Seems you spotted the right place. Up for a PR? |
Hi, I create a PR to fix this issue, see #5770. |
shadowings-zy
added a commit
to shadowings-zy/vuejs-core
that referenced
this issue
Apr 21, 2022
any update? |
yyx990803
pushed a commit
that referenced
this issue
Oct 26, 2022
chrislone
pushed a commit
to chrislone/core
that referenced
this issue
Feb 4, 2023
zhangzhonghe
pushed a commit
to zhangzhonghe/core
that referenced
this issue
Apr 12, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.2.33
Reproduction link
sfc.vuejs.org
Steps to reproduce
a.trim is not a function
What is expected?
I would like to pass any type of value to update:xxx event
What is actually happening?
If v-model is used with built-in modifiers, e.g. trim or number then I cannot emit the update:xxx event if passed some parameter is not a string. Let's say i have custom Input component where I would like to pass additional data to
update:modelValue
event, e.g. an object with field name but currently, as shown in the demo, if I use trim modifiers, emitting such an event is not possible.Looks like the issue is in these lines of code componentEmits.ts#L124
The text was updated successfully, but these errors were encountered: