Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1faafa3

Browse files
committed
fix(forms): Remove double registering of form
1 parent 08bfea1 commit 1faafa3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: src/directive/form.js

-4
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ function FormController(name, element, attrs) {
6262
addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
6363
}
6464

65-
if (parentForm) {
66-
parentForm.$addControl(form);
67-
}
68-
6965
form.$addControl = function(control) {
7066
if (control.$name && !form.hasOwnProperty(control.$name)) {
7167
form[control.$name] = control;

0 commit comments

Comments
 (0)