From 441525e913c0f32557fcb750032c52b8a0cd3c57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lins?= Date: Wed, 13 May 2020 15:11:41 -0300 Subject: [PATCH] Removing declarations --- src/compiler/compile/nodes/Element.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts index b25b57c76f..c8aec2e2b3 100644 --- a/src/compiler/compile/nodes/Element.ts +++ b/src/compiler/compile/nodes/Element.ts @@ -508,10 +508,7 @@ export default class Element extends Node { } if (a11y_no_onchange.has(this.name)) { - const change_handler = handlers_map.get('change'); - const blur_handler = handlers_map.get('blur'); - - if (change_handler && !blur_handler) { + if (handlers_map.has('change') && !handlers_map.has('blur')) { component.warn(this, { code: `a11y-no-onchange`, message: `A11y: onBlur must be used instead of onchange, unless absolutely necessary and it causes no negative consequences for keyboard only or screen reader users.`