Skip to content

Commit

Permalink
38203 refactor event binding for form inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-eastgate committed Oct 10, 2023
1 parent d9c2385 commit 51632eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/onoffice-captchacontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,5 @@ jQuery(document).ready(function ($) {
.appendTo("head");
}
}
const formsSelector = "#onoffice-form, .oo-form";
$(`${formsSelector} :input`).on("focus select2:open", addRecaptchaScript);
$(`#onoffice-form :input, .oo-form :input`).on("focus select2:open", addRecaptchaScript);
});

0 comments on commit 51632eb

Please sign in to comment.