Skip to content

amp-form on=form.submit won't work for GET non-XHR requests #6916

@mkhatib

Description

@mkhatib

The call we make to this.handleSubmit_ in amp-form doesn't actually invoke form.submit() and since this isn't an actual submission event we'd need to trigger it manually in that case.

if (!e && GET && non-XHR) {
  // after doing validation checks.
  this.form_.submit();
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions