Skip to content

Commit

Permalink
fix(auto-complete): add submit event auto complete to form element
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Lieben committed May 13, 2017
1 parent e650d0d commit b03ecd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/Completions/Library/formElement.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BindableAttribute, Value, MozDocElement } from './_elementStructure';
import { BindableAttribute, Value, MozDocElement, Event } from './_elementStructure';

export default class FormElement extends MozDocElement {

Expand Down Expand Up @@ -61,5 +61,9 @@ In previous versions of HTML, the different character encodings could be delimit
['_parent', new Value(`Load the response into the HTML 4 frameset parent of the current frame, or HTML5 parent browsing context of the current one. If there is no parent, this option behaves the same way as _self.`)],
['_top', new Value(`Load the response into the top-level browsing context (i.e., the browsing context that is an ancestor of the current one, and has no parent). If there is no parent, this option behaves the same way as _self.`)]
])));

this.events.set('submit', new Event(
`The submit event is fired when a form is submitted.`,
`https://developer.mozilla.org/en-US/docs/Web/Events/submit`, false, false));
}
}

0 comments on commit b03ecd2

Please sign in to comment.