-
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
RangeError: Maximum call stack size exceeded #81
Comments
Saw that it would be a nice feature if ASFDS checks if there is a data field and if so uses that before continuing to use the result as-is. That way it would handle restangular as it you would only need to map the properties. |
I have also looked in the example. It seems like it works there as well, I think a plunkr would help not only explaining to me, but perhaps help you debug. |
I should probably create a default plunkr for users to use, ASF is making one now, I will base it on that, if so. |
Thanks for your quick answer 👍 As a hint I could say that instead of defining the form definition in the |
I would strongly advise against that, to quote the docs: "It's recommended to split presentation and validation into a form definition and a json schema." Actually, it is a little bit worse, as it completely goes against the json-schema-form concept where the clear separation of concern is one of its strongest features. But again, create a plunkr, and I will try and help you. |
@nicklasb I've been able to produce a plunkr: https://plnkr.co/edit/3GRu9eu5j49H3gisqBkf?p=preview As for the problem n.2 you can see that I set the |
PS: the default selected filed seems to work ONLY if the DEFAULT DO NOT WORK
DEFAULT WORKS
and as I said above, it seems due to the |
What is the state of this issue? |
Hello, first thanks very much for this! 👍
I'm using ui-select version and I'm facing 2 problems:
1 Bug?
I retrieve the options in async way using this options:
My callback is something like this:
And my select gets populated.
The problem comes when I select an item, then in the console I can see:
It seems tv4 is triggered multiple times. I am not sure if this is a problem coming from this project or from schema-form. I've never had this errors with other custom fields.
2 question:
When I have an edit form (not creating but editing) , I already have the value for the select field (
$scope.formData.example
) but not the options yet (because async). As you can see from the code above I try to find the selected one by adding a fieldselected : true
.How can I use this information to autoselect the correct item? Is there a better way to do so?
The text was updated successfully, but these errors were encountered: