58894/fix-ng-model-submit-reset-events#60887
Closed
gabrielbergoc wants to merge 1 commit intoangular:mainfrom
Closed
58894/fix-ng-model-submit-reset-events#60887gabrielbergoc wants to merge 1 commit intoangular:mainfrom
gabrielbergoc wants to merge 1 commit intoangular:mainfrom
Conversation
7c89a32 to
17ec3f0
Compare
Member
|
Hi, we need your change to target the main branch. We then backport it automatically to the current patch version during the merge process |
Contributor
Author
|
@JeanMeche I did a rebase, but maybe I did it wrong..? There are 15 other commits on the pull request now, is that right? |
Member
|
There should be a single commit, you likely didn't rebase correctly. |
Currently, only forms created with `FormGroupDirective` emit events on form submission and resetting. This commit extends this behavior to Template-driven forms also. Related to angular#58894
Contributor
Author
|
@JeanMeche fixed it |
kirjs
approved these changes
Apr 21, 2025
Member
|
This PR was merged into the repository by commit be99562. The changes were merged into the following branches: main, 19.2.x |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, only forms created with
FormGroupDirectiveemit events on form submission and resetting. This commit extends this behavior to Template-driven forms also.Related to #58894
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Only Reactive Forms emit events FormSubmittedEvent and FormResetEvent.
Issue Number: #58894
What is the new behavior?
Now Template-Driven Forms also emit FormSubmittedEvent and FormResetEvent.
Does this PR introduce a breaking change?
Other information
Tests added, all tests passed.