diff --git a/src/generators/dom/visitors/Element/Binding.js b/src/generators/dom/visitors/Element/Binding.js index 7e8f38b947..2cc461bcd5 100644 --- a/src/generators/dom/visitors/Element/Binding.js +++ b/src/generators/dom/visitors/Element/Binding.js @@ -19,7 +19,7 @@ export default function visitBinding ( generator, block, state, node, attribute const type = getStaticAttributeValue( node, 'type' ); const bindingGroup = attribute.name === 'group' ? getBindingGroup( generator, keypath ) : null; const value = getBindingValue( generator, block, state, node, attribute, isMultipleSelect, bindingGroup, type ); - const eventName = getBindingEventName( node ); + const eventName = getBindingEventName( node, attribute ); let setter = getSetter({ block, name, keypath, context: '_svelte', attribute, dependencies, value }); let updateElement; @@ -77,6 +77,19 @@ export default function visitBinding ( generator, block, state, node, attribute updateElement = `${state.parentNode}.checked = ${condition};`; } + //