-
Notifications
You must be signed in to change notification settings - Fork 342
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
Proxying events with v-on="computed" #128
Comments
The event proxy works file in the fiddle. What's your expectation? |
The blur event doesn't fire for me. Otherwise it would write "blur event works" in the console. Are you seeing that? If it's proxying the blur event from the encapsulated component to the input element, then it should trigger that blur event. |
Object.assign({},
// We add all the listeners from the parent
context.root.$listeners,
// Then we can add custom listeners or override the
// behavior of some listeners.
{
// This ensures that the component works with v-model
input: function (event) {
context.emit('input', event.target.value)
},
},
) You should not use Unfortunately, we can't do this now because |
I think the problem is that there's not @liximomo So I think we should introduce a |
@LinusBorg I agreed. |
I'm trying to replicate the proxying of events as described here: https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components in the composition api. But am unable to get the events to proxy like they do without the plugin.
Full fiddle here: https://jsfiddle.net/4wfzh0u6/
The text was updated successfully, but these errors were encountered: