Skip to content

Commit

Permalink
fix(autocomplete): only add form related events to the <form> element
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-lieben committed Oct 22, 2016
1 parent 798ae66 commit e152836
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/server/aurelia-languageservice/parser/aureliaTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit e152836

Please sign in to comment.