-
Notifications
You must be signed in to change notification settings - Fork 42
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
rendered function has no gmap parameter #31
Comments
ok i found a way to debug this
this outputs
ok i guess that was the wrong place to lock at? |
Ah, now i am getting a feel of it whats happening. Your code gets never to the point (if clause) to call my callback function and pass the map as an argument. BUT somehow my callback is invoked anyway! I can choose any arbitrary property name for my callback function but its called anyway.
So obviously i am doing something wrong but the fact that the functions is called anyway made me believe it was right in the first place. EDIT: EDIT2: EDIT3:
it seems to work but i'll get this error message
|
Hmmm... really strange but I guess it's autoform messing up. It seems to work only when you put the rendered callback in location: {
type: String,
autoform: {
type: 'map',
afFieldInput: {
rendered: function () {
return function (map) {
console.log(map);
};
}
}
}
} |
Yes, as i mentioned in my last edit in my third post: if i do that i'll get an exception
obviously Autoform is trying to evaluate this recursively, no matter what, until the jsVM stack get overflown. |
It may be caused by other property. For me it worked. At least on Chrome. I've came across this error on Firefox several times. |
I tried it again and surprisingly the exception did not happen but the "outter" function is called 15 times. Regardless of this, you should consider to update your docs or investigating whats causing that quirk (API change of Autoform?) after this i would consider this issue closed. |
If i set a function for the rendered option this function is like called 15 times and every time the map object is undefined.
i looked through your code and can't find an obvious error.
looks fine to me, but the map is undefined :/
OT: i would love to debug this myself, but i can't find the place to alter the code of your installed package.
The text was updated successfully, but these errors were encountered: