inline async function in v-on handler #4568
Labels
🍰 p2-nice-to-have
Priority 2: this is not breaking anything but nice to have it addressed.
🐞 bug
Something isn't working
scope: compiler
Version
3.2.11
Reproduction link
sfc playground repro
Steps to reproduce
see sfc playground link
What is expected?
should work:
like:
What is actually happening?
async
keyword prevent detection of inline handler, and wrap it as an expression.notes
as seen in case 3,4 in the repro link, there is an unintentional behavior that fixes the handler, by using
( )
to wrap an async arrow function.@click="(async ()=>{ await stuff() })"
it works with
()=>{}
but not withfunction
The text was updated successfully, but these errors were encountered: