HubSpot / vex

A modern dialog library which is highly configurable and easy to style. #hubspot-open-source
http://github.hubspot.com/vex/docs/welcome
MIT License
6.92k stars 491 forks source link

Submitting a form using ajax, Vex confirmation submits its own form #219

Open mbrowncog opened 7 years ago

mbrowncog commented 7 years ago

My page has many forms, generated in a loop.

I have ajax code that submits the form. But I want to ask the user to confirm (using vex) before submitting the form. It appears that the vex dialog submits a form, which triggers my code again. The user gets the confirm dialog twice. Is there an example I can follow?