Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Micajuine Ho committed Mar 19, 2021
1 parent e9ae59a commit 64d4463
Show file tree
Hide file tree
Showing 2 changed files with 258 additions and 84 deletions.
5 changes: 2 additions & 3 deletions extensions/amp-form/0.1/amp-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -930,10 +930,9 @@ export class AmpForm {
.then((implementation) => implementation.getValue())
.then((value) => {
const name = asyncInput.getAttribute(AsyncInputAttributes.NAME);
let input = formElementsQuerySelectorAll(
this.form_,
let input = this.form_.querySelector(
`input[name=${escapeCssSelectorIdent(name)}]`
)[0];
);
if (!input) {
input = createElementWithAttributes(
this.win_.document,
Expand Down
Loading

0 comments on commit 64d4463

Please sign in to comment.