Skip to content

Commit

Permalink
[JENKINS-65585] avoid double-submit in HtmlUnit when clicking a submi…
Browse files Browse the repository at this point in the history
…t button
  • Loading branch information
thomasgl-orange committed May 12, 2021
1 parent 56c0218 commit 0eb9318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions war/src/main/webapp/scripts/yui/button/button-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1975,6 +1975,8 @@ version: 2.9.0
if (p_oEvent.returnValue !== false) {

this.submitForm();
// avoid double form submission in HtmlUnit
Event.preventDefault(p_oEvent);

}

Expand Down
Loading

0 comments on commit 0eb9318

Please sign in to comment.