ng-admin
ng-admin copied to clipboard
field.validation doesn't work in Embedded Entities view
When using the "Embedded Entities" edit form, the field.validation(x)
function does not update the UI with ticks or crosses
To reproduce:
-
open this Plunkr demo: http://plnkr.co/edit/QW05BXQL2du3LXH1Xbly?p=preview
-
click on "John" on the dashboard
-
click "add new children"
-
I have added the following fields to "user" and "child" (see script.js lines 45 - 58)):
nga.field('name (vowels only)') .validation({pattern: /^[aeiou]+$/i}),
- enter a name like "a" into the "name" field for the user and for the child entity
- enter a name like "x" into the "name" field for the user and for the child entity
Expected behaviour:
I'd expect both the "user" form and the "child" form to show a green tick for the name "a" and a red cross for the name "x"
Observed behaviour:
The user form has the above behaviour, but the child form has no visible UI validation.
+1 experiencing this same issue.
Anyone has a workaround? or fix? Thanks
Are we aware of this @fzaninotto ?
+1 experiencing this same issue.