From 95f3f1c0b3370099a3fe8a6d09dbdbddc90664db Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Wed, 30 Jun 2021 00:10:37 +0800 Subject: [PATCH] fix ci after merge conflicts (#6473) --- src/compiler/compile/nodes/Element.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index 7343f51f55..d75f3b040e 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -430,14 +430,19 @@ export default class Element extends Node { validate_special_cases() { - const { component, attributes } = this; + const { component, attributes, handlers } = this; const attribute_map = new Map(); + const handlers_map = new Map(); attributes.forEach(attribute => ( attribute_map.set(attribute.name, attribute) )); + handlers.forEach(handler => ( + handlers_map.set(handler.name, handler) + )); + if (this.name === 'a') { const href_attribute = attribute_map.get('href') || attribute_map.get('xlink:href'); const id_attribute = attribute_map.get('id');