Open cvlmtg opened 9 years ago
Yep, I can reproduce it, although with a different error message. The error seems to come from textAngular, a dependency used by ng-admin.
Would you mind opening an issue in their GitHub repo?
ok. btw I'm playing a bit with a custom directive, and I noticed that in the link function, the scope.entry.values objects doesn't contain just the entity values, but a lots of methods, including (guess what :) a method named "head". is this supposed to be correct?
You're right, there is something wrong. It's like values
gets a copy of the Restangular object... I'll dig deeper.
thanks :)
@fzaninotto Isn't be fixed with https://github.com/marmelab/admin-config/pull/20 ?
I don't see how. Restangular erases data before we can read it.
On last master version, this bug doesn't seem to happen anymore. Yet, an error is displayed in the console:
angular.min.js:108 TypeError: safe.match is not a function
at taSanitize (textAngular.js:398)
at Array._sanitize (textAngular.js:1286)
at angular.min.js:271
at n.$digest (angular.min.js:132)
at angular.min.js:135
at e (angular.min.js:43)
at angular.min.js:46
this is what happens when you edit an entity that have a field named "head":
instead of the content of that field you see that snippet of code. in show view you don't see anything but get lots of errors in the js console, like this one: