Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Widget fires submit event twice #129

@msc0000001

Description

@msc0000001

I was previously using version 2.0.3 (prior to overlay implementation).
Since updating to version 2.2.0 (without using the overlay mode), it seems the form submit event is being fired twice on verification.

I've diffed the versions and can see an additional call to requestSubmit has been added to function verify()

if (auto === 'onsubmit') { requestSubmit(elSubmitter); } else if (overlay) { hide(); }

However, onFormSubmit which calls verify() already fires a requestSubmit to the form

verify().then(() => { requestSubmit(elSubmitter); });

I believe this then causes the double submission.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions