bug: Unchecking a required <ion-checkbox> does not make the form $invalid
Type: bug
Platform: all
Issue #2786 was closed by Ionitron as inactive, but it's still present so I'm reopening it. The plunkr link below uses nightly builds.
== Original bug ==
Plunkr: http://plnkr.co/edit/NZAg38SAjgSQzbRTl9WY?p=preview
I'm using Angular form validation. An unchecked <ion-checkbox> with required attribute correctly makes the form $invalid. However, if I check it then uncheck it, the form does not become $invalid again.
This problem does not happen with a plain <input type="checkbox">, as demonstrated in the plunkr.
This doesn't seem to be fixed, the plunkr still exhibits the same behavior with the latest nightly: http://plnkr.co/edit/NZAg38SAjgSQzbRTl9WY?p=preview
+1
+1
had the same issue, use ng-required="true" of required="true"
Works like a charm, so it is fixed :)
+1