Skip to content

Commit

Permalink
fix: restore stopImmediatePropagation
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo committed Jan 14, 2025
1 parent 76dc363 commit f53c1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/other-scripts/recaptcha/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function renderV2Widget( form, onSuccess = null, onError = null ) {
form.addEventListener( 'submit', e => {
if ( ! form.hasAttribute( 'data-recaptcha-validated' ) && ! form.hasAttribute( 'data-skip-recaptcha' ) ) {
e.preventDefault();
e.stopPropagation();
e.stopImmediatePropagation();
// Empty error messages if present.
removeErrorMessages( form );

Expand Down

0 comments on commit f53c1fa

Please sign in to comment.