We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6ebff4 commit 645a402Copy full SHA for 645a402
packages/compiler-vapor/src/generators/event.ts
@@ -90,7 +90,7 @@ export function genEventHandler(
90
} = { nonKeys: [], keys: [] },
91
needWrap: boolean = true,
92
): CodeFragment[] {
93
- let handlerExp: CodeFragment[] = [`{}`]
+ let handlerExp: CodeFragment[] = [`() => {}`]
94
if (value && value.content.trim()) {
95
const isMemberExp = isMemberExpression(value, context.options)
96
const isInlineStatement = !(
0 commit comments