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

Laytpl Error:TypeError: Cannot read property 'label' of undefined #13

Open
suzaichuan opened this issue Jul 31, 2019 · 2 comments
Open

Comments

@suzaichuan
Copy link

替换 form.js 后出现“Laytpl Error:TypeError: Cannot read property 'label' of undefined” 错误。
替换回源码 ok。影响了laytpl。

@yelog
Copy link
Owner

yelog commented Jul 31, 2019

你使用的 layui 版本是多少

@suzaichuan
Copy link
Author

版本是 2.4.5;
经过跟踪调试,发现是数组的特性被改了导致的。for (i in arrary); 额外多二次循环,indexofElem 和 removeElem。 而且 下拉选项会多两个undefined 选项。只限于使用数组循环出现。

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

2 participants