Skip to content
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

Cannot read properties of undefined (reading 'settings') #333

Open
soareseneves opened this issue Aug 8, 2023 · 1 comment
Open

Cannot read properties of undefined (reading 'settings') #333

soareseneves opened this issue Aug 8, 2023 · 1 comment

Comments

@soareseneves
Copy link

I'm getting this error in console after page is loaded. How can I solve this?

Uncaught TypeError: Cannot read properties of undefined (reading 'settings')
    at _parseTemplate (yii2-dynamic-form.js:90:48)
    at HTMLFormElement.<anonymous> (yii2-dynamic-form.js:37:42)
    at Function.each (jquery.js:385:19)
    at jQuery.fn.init.each (jquery.js:207:17)
    at jQuery.fn.init.init (yii2-dynamic-form.js:36:25)
    at $.fn.yiiDynamicForm (yii2-dynamic-form.js:19:33)
    at 137:2686:26
    at dispatch (jquery.js:5466:27)
    at elemData.handle (jquery.js:5270:28)

I'm using https://github.com/kartik-v/yii2-widget-activeform instead of Yii's default activeform

@soareseneves
Copy link
Author

soareseneves commented Aug 8, 2023

This fixes my issue: #224 (comment)
I wonder why this hasn't been fixed, I will create a PR.

soareseneves added a commit to soareseneves/yii2-dynamicform that referenced this issue Aug 8, 2023
Fix javascript error: Cannot read properties of undefined (reading 'settings')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant