You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
After removing a field from a form using $removeControl, if you change the field's value [to be invalid] it will affect the validity of the form it was removed from.
Not too sure if this is working as expected or not, but seems to be undesired.
Affected versions [at least] 1.3.x, 1.4.x
Add an invalid value into the field (it accepts numbers).
Note the validity of the form and field. (Form: invalid; Field: invalid)
Click the button to remove the control via $removeControl(...)
Note the validity of the form and field. (Form: valid; Field: [not on formCtrl])
Edit the field to be invalid.
Note the validity of the form and field. (Form: invalid; Field: [not on formCtrl])
For step 6 I would expect the form to no longer be affected by the field, especially since step 4 set the form to valid when the invalid field was removed.
After removing a field from a form using
$removeControl, if you change the field's value [to be invalid] it will affect the validity of the form it was removed from.Not too sure if this is working as expected or not, but seems to be undesired.
Affected versions [at least] 1.3.x, 1.4.x
Steps to reproduce (given the following plnkr)
http://plnkr.co/edit/NZJn0zwWdKxvrIlQxUmn?p=preview
$removeControl(...)For step 6 I would expect the form to no longer be affected by the field, especially since step 4 set the form to valid when the invalid field was removed.