Scenario:

I have created login form using webform and placed on home page as block for anonymous users. So sometime login form's submit button is not clickable.

Debugging:

After debugging code i have observed that , removeAttr in webform.form.submit_once.js file is not always removing attribute like webform-submitted , but this is strangely inconsistent. It doesn't work sometimes. Because of this I m not able to submit form , because of this line "if($form.attr('webform-submitted')) {return false; }".

Solution:

After changing line "$form.removeAttr('webform-submitted');" to "$form.attr('webform-submitted', '');" it is working perfectly fine.

Comments

Hardik_Patel_12 created an issue. See original summary.

jrockowitz’s picture

Status: Needs work » Needs review
StatusFileSize
new2.36 KB

The attached moves from using simple attributes to data-* attributes and .js-* classes.

  • jrockowitz committed d3e08ef on 8.x-5.x
    Issue #2996954 by Hardik_Patel_12, jrockowitz: Form submit button not...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download the latest dev release to review.

hardik_patel_12’s picture

Hi jrockowitz,
I have used patch which was commited in dev release , but i m still facing same issue as mentioned.

jrockowitz’s picture

Status: Fixed » Needs work

  • jrockowitz committed 7d820ec on 8.x-5.x
    Issue #2996954 by Hardik_Patel_12, jrockowitz: Form submit button not...
jrockowitz’s picture

Status: Needs work » Postponed (maintainer needs more info)

@Hardik_Patel_12 I can't reproduce this issue.

Are you able to reproduce this issue via https://simplytest.me?

Can you export and attach an example webform?

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)