Submit Event not being triggered
See original GitHub issueAngular 7 Submit Event not being triggered.
Hello, I am working on a Angular 7 Project. I downloaded the Angular Demo code https://formio.github.io/angular-demo and ran it locally.
In the renderer.component.html
I added the (submit)
event and in the renderer.component.ts
I added a method onSubmit($event)
. The (change
) event gets triggered but the (submit)
event doesn’t after clicking on the Submit button. Its the same case for (invalid)
. See below image for the simple change I made to test this bug.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
javascript - Why won't form.submit() trigger the "submit" event?
The form's onsubmit event handler (for example, onsubmit="return false;" ) will not be triggered when invoking this method from Gecko-based applications.
Read more >Submit Event not getting triggered for form · Issue #755 - GitHub
Suggested solution: FireEvent.click should trigger submit event for submit buttons that are outside the form.
Read more >Form sumbit event not firing everytime when the form submits
Hi, I have been continuously facing this problem. Reliability of form submit event to be fired is very less. Out of 10 times...
Read more >.submit() | jQuery API Documentation
A function to execute each time the event is triggered. version added: 1.0.submit(). This signature does not accept any arguments.
Read more >HTMLFormElement: submit event - Web APIs | MDN
The event is not sent to the form when calling the form.submit() method ... element which was invoked to trigger the form being...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved the issue by using
action: 'submit'
This may be caused by that you are using a form object instead of the url. We will investigate.