-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error #3
Comments
It seems to result from a conflict between angular-ui module and angular Strap module. |
I sort of vaguely recognize this issue from an earlier schema-form issue where i had a similar problem. |
The problem at that time was that I had properties in my database called nodeName and that came into conflict with the nodeName property of HTMLElement because schema-form sets the input field name to nodeName. And then you couldn't access that field using parentNode.nodeName, as that was the nodeName of the parent node. This may sound like bad design of schema form, but is actually not, really, as the discussion in that thread reveals. This is relevant of course, only if that problem is related to yours. :-) |
This component does not depend on angular-ui. however angular-schema-form depends on ui-sortable, but only if one wants drag-and-drop reordering of arrays. So if there is a conflict you cannot resolve, check if you really use that feature. Does this error start occurring when you add this component? |
Hi, If possible, please provide an example where this happens. |
Hey, sorry for taking some time to get back to you. Busy at work etc etc. var app= angular.module('app', This is the order of loading dependencies when my app is working. If I do the following for example, the app stops working. var genesis = angular.module('genesis', I guess its a matter of loading dependencies in order... P.S I am changing ui.bootstrap position |
Ok.Strange indeed. |
Ok, I have looked into it now and have found the cause of the problem. This problem doesn't seem to have anything to do with this component, but is a problem with combining UI-Bootstrap and Angular-Strap in general. It is only triggered by the fact that angular-schema-form-dynamic-select uses Angular-Strap. The problem is reported: They seem to be working on a fix, the conflict seems to have been around for a while: While they decide and implement a prefix solution, I recommend you to do as you proposed, and load ui.bootstrap before mgcrea.ngStrap. Thanks for your troubleshooting! |
Getting this error, any ideas what could be the cause?
TypeError: n[0].nodeName is undefined
The text was updated successfully, but these errors were encountered: