Event Modifiers are not passed when using Render Function
Vue version
3.2.47
Link to minimal reproduction
https://stackblitz.com/edit/vue-zh7ajy
Steps to reproduce
return () => {
return h('div', {
onWheel: withModifiers((e) => console.log("I am not passive", e), ['passive']),
});
};
- Create component using render function
- Add event listener with modifier you expect to be passed as
options
toaddEventListener
- Verify:
- by setting breakpoint inside
patchEvent
- or by running Lighthouse report
What is expected?
I would expect that passive
will be passed for options when addEventHandler
is executed.
What is actually happening?
Event handler is not passive. It works only for regular templates.
System Info
No response
Any additional comments?
No response