From e152836a3f9d76908f36e59abd9ba77678998776 Mon Sep 17 00:00:00 2001 From: Erik Lieben Date: Sat, 22 Oct 2016 11:43:33 +0200 Subject: [PATCH] fix(autocomplete): only add form related events to the
element --- src/server/aurelia-languageservice/parser/aureliaTags.ts | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/server/aurelia-languageservice/parser/aureliaTags.ts b/src/server/aurelia-languageservice/parser/aureliaTags.ts index 0b0cde77..0651798d 100644 --- a/src/server/aurelia-languageservice/parser/aureliaTags.ts +++ b/src/server/aurelia-languageservice/parser/aureliaTags.ts @@ -82,12 +82,6 @@ const globalEvents = [ new HTMLAttributeSpecification('animationend', actionRedirectOptions), new HTMLAttributeSpecification('animationiteration', actionRedirectOptions), - // Form Events - new HTMLAttributeSpecification('reset', actionRedirectOptions), - new HTMLAttributeSpecification('submit', actionRedirectOptions), - new HTMLAttributeSpecification('change', actionRedirectOptions), - new HTMLAttributeSpecification('input', actionRedirectOptions), - // Text Composition Events new HTMLAttributeSpecification('compositionstart', actionRedirectOptions), new HTMLAttributeSpecification('compositionupdate', actionRedirectOptions), @@ -144,7 +138,10 @@ const globalEvents = [ export const AURELIA_EVENTS: IEventSet = { 'form': [ ...globalEvents, + new HTMLAttributeSpecification('reset', actionRedirectOptions), new HTMLAttributeSpecification('submit', actionRedirectOptions), + new HTMLAttributeSpecification('change', actionRedirectOptions), + new HTMLAttributeSpecification('input', actionRedirectOptions), ], 'input': [...globalEvents], 'textarea': [...globalEvents],