formly-js / angular-formly

JavaScript powered forms for AngularJS
http://docs.angular-formly.com
MIT License
2.23k stars 406 forks source link

Multiple fieldgroups with the same internal keys: Error in one is shown for all the other #677

Open theotherp opened 8 years ago

theotherp commented 8 years ago

I have multiple fieldgroups with the same inner keys, all being required. When I remove the value in the last fieldgroup the error state is triggered and shown for all the fields of the same key in the other fieldgroups. On the other hand removing the value from the required input field from all but the last fieldgroup does not trigger the validation at all.

Demo: http://jsbin.com/xijenihoyi/edit?html,js,output Click into the second field and leave it and both fields are shown with an error. Click into the first field and leave it and nothing happens.