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 b421ce0 commit b3e25e4Copy full SHA for b3e25e4
packages/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js
@@ -38,8 +38,7 @@ export function build_set_attributes(
38
39
if (
40
is_event_attribute(attribute) &&
41
- (get_attribute_expression(attribute).type === 'ArrowFunctionExpression' ||
42
- get_attribute_expression(attribute).type === 'FunctionExpression')
+ (value.type === 'ArrowFunctionExpression' || value.type === 'FunctionExpression')
43
) {
44
// Give the event handler a stable ID so it isn't removed and readded on every update
45
const id = context.state.scope.generate('event_handler');
0 commit comments