Skip to content

Commit

Permalink
fix: only ping swift when section is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
issammani committed Oct 8, 2024
1 parent 42301f0 commit 33728c1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ export class FormAutofillChild {
return;
}

// Since iOS doesn't support cross frame autofill,
// we should only call the autofill callback if the section is valid.
// TODO(issam): This will change when we have cross frame fill support.
if (!this.activeSection.isValidSection()) {
return;
}

const fieldNamesWithValues = this.transformToFieldNamesWithValues(
this.activeSection.fieldDetails
);
Expand Down

0 comments on commit 33728c1

Please sign in to comment.