Skip to content

vex.close could cover submission #280

@Raven0us

Description

@Raven0us

Using

"vex-dialog": {
      "version": "1.1.0"
}

"vex-js": {
      "version": "4.1.0"
}

There could be an easy alternative to vex.close() that would gather the form data before closing the pop-up, either a separate method like vex.submit(), or vex.close(bool shouldSubmit), that wouldn't count as cancel.

Currently, programmatically, I can only do

el.dispatchEvent(new Event('submit'));

with el being the form, in order for the onSubmit handler to run and the provided callback to work properly.

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