When I use v-bind="onEvent" syntax to add an event handler to a Vue component in the template, the $event parameter's type is not inferred correctly. I can work around this by using @event syntax, but there are cases where I would prefer not to have to.
Is this a known limitation, or is it being addressed somewhere?
When I use
v-bind="onEvent"
syntax to add an event handler to a Vue component in the template, the$event
parameter's type is not inferred correctly. I can work around this by using@event
syntax, but there are cases where I would prefer not to have to.Is this a known limitation, or is it being addressed somewhere?
Vue SFC playground example here