-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Nested form submit trigger #236
Comments
Needed:please where are Probleme:when doing the following changes in - <form id="form" data-elb="form" data-elbaction="submit">
+ <form id="form" data-elb="form">
<input type="text" />
- <button type="submit" >Submit</button>
+ <button type="submit" data-elbaction="submit">Submit</button>
</form> I get errors at this level |
I'm at work and I just had some free time to look at stuff. Heres what I got so far, maybe the next person can work upon that.
|
In the 'click' listener I check if the parent element contains data-elb='form' and the button I click has data-elbaction='submit' , if its true i send a I dont really have the time right now to install all dependencies of all packages and try run tests, too many dependency issues to take care of. However, I hope this pushes the issue in the right direction |
Is your feature request related to a problem? Please describe.
Right now the submit trigger has to be placed in the form element. But it should also be working if it's placed on buttons, like the regular tagging works.
Describe the solution you'd like
The following code should work:
The text was updated successfully, but these errors were encountered: