Skip to content

Commit

Permalink
Changed to correct element type
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssogaard committed Sep 12, 2018
1 parent 774f658 commit 815b01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/cf/ConversationalForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ namespace cf {
// doing classic .submit wont trigger onsubmit if that is present on form element
// as described here: http://wayback.archive.org/web/20090323062817/http://blogs.vertigosoftware.com/snyholm/archive/2006/09/27/3788.aspx
// so we mimic a click.
var button: HTMLButtonElement = this.formEl.ownerDocument.createElement('input');
var button: HTMLButtonElement = this.formEl.ownerDocument.createElement('button');
button.style.display = 'none';
button.type = 'submit';
this.formEl.appendChild(button);
Expand Down

0 comments on commit 815b01a

Please sign in to comment.