Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vex.close could cover submission #280

Open
Raven0us opened this issue Jul 10, 2019 · 0 comments
Open

vex.close could cover submission #280

Raven0us opened this issue Jul 10, 2019 · 0 comments

Comments

@Raven0us
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant