-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
checkboxgroup/radiogroup issue in MODx.FormPanel #12177
Comments
Any examples? |
Do you want to check the issue live in my dev installation? Or should I strip the extjs code down? Basically it is caused on this MODx.Panel:
If the Otherwise there is a Uncaught TypeError: undefined is not a function in utilities.js:65 |
Here that's ok: https://github.com/modxcms/revolution/blob/master/manager/assets/modext/widgets/security/modx.panel.user.js#L492 Try to extend panel from MODx.FormPanel instead of MODx.Panel as other core panels do. See file I mentioned. It has tabs and radiogroups as you need. |
Extend from MODx.FormPanel makes no difference (same error occurs). For some reason on this panel the items of xtype 'radiogroup' is an array of objects instead of an Ext.util.MixedCollection containing 'items' that is an array of objects. |
Have you removed xtype: 'modx-formpanel' after extending? Try to rewrite modx.panel.user with your fields. |
I have removed that. To reproduce what is going wrong you could use the following stripped code in a CMP:
If I use the following line
or if I remove
the CMP is rendered. |
@Jako Can you fix it now? |
No, the issue is still there. |
Hi @Jako, out of curiosity, does it work now? 🤓 |
If a MODx.FormPanel contains a checkboxgroup/radiogroup this panel is not rendered because of nodeToRecurse.items is an array in utilities.js (line 65) for the checkboxgroup/radiogroup item and that has not the method each.
I don't know how to fix that without breaking recursive work of that function.
The text was updated successfully, but these errors were encountered: