question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Submit Event not being triggered

See original GitHub issue

Angular 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.

image

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ziishanedcommented, Jun 23, 2019

I solved the issue by using action: 'submit'

1reaction
travistcommented, Apr 1, 2019

This may be caused by that you are using a form object instead of the url. We will investigate.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found