Skip to content

Commit

Permalink
FIO-9156 fixed the display of Captcha component for nested forms
Browse files Browse the repository at this point in the history
  • Loading branch information
HannaKurban committed Jan 14, 2025
1 parent 6a5e5bc commit 4a62b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -1768,7 +1768,7 @@ export default class Webform extends NestedDataComponent {
}

triggerCaptcha() {
if (!this || !this.components) {
if (!this || !this.components || this.options.preview) {
return;
}
const captchaComponent = [];
Expand Down

0 comments on commit 4a62b82

Please sign in to comment.