Hi there

I am experiencing a problem with the submit buttons becoming disabled on a basic "contact" webform when attempting to upload a file. I am using Drupal 8.9.2 and Webform 5.19

Steps to reproduce:

1. From a webform which has the option to upload a file, choose a file to upload.

2. While the file upload is still in progress, click to submit the form.

3. When the alert "File upload in progress. Uploaded file may be lost. Do you want to continue?" appears, click "Cancel".

4. The submit button remains disabled until the page is refreshed.

Any help with this would be greatly appreciated.

Thanks

Laura

Comments

laurab created an issue. See original summary.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

I am not able to replicate this issue using the Bartik theme. Are you able to replicate this issue using https://simplytest.me?

laurab’s picture

I had some trouble getting this to work with https://simplytest.me.

However, on my test environment, it seems the issue does not occur if the webform.form.submit_once.js script is blocked. I had also switched to the Bartik theme.

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new4.85 KB
new1.52 KB

The attached webform replicates the issue and the attached patch fixes the issue.

laurab’s picture

This patch fixed my issue entirely, thanks very much.

  • jrockowitz authored 6b85c0f on 8.x-5.x
    Issue #3163463 by jrockowitz: Submit button remains disabled after...

  • jrockowitz authored 6b85c0f on 6.x
    Issue #3163463 by jrockowitz: Submit button remains disabled after...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.