Skip to content

Commit

Permalink
Revert "[java] Dispatch form "submit" event on window to prevent a fo…
Browse files Browse the repository at this point in the history
…rm double submission"

This reverts commit bbd0774.
  • Loading branch information
barancev authored and Grigory Mischenko committed Sep 20, 2018
1 parent 1ad1f0c commit bc6b7e9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -365,7 +365,7 @@ public W3CHttpCommandCodec() {
"if (!form.ownerDocument) { throw Error('Unable to find owning document'); }\n" +
"var e = form.ownerDocument.createEvent('Event');\n" +
"e.initEvent('submit', true, true);\n" +
"if (form.ownerDocument.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\n",
"if (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\n",
asElement(parameters.get("id")));

default:
Expand Down

0 comments on commit bc6b7e9

Please sign in to comment.