[英]ExtJS error in nested grids : Cannot read property 'isGroupHeader' of null
[英]Cannot read property 'removeCls' of null for tagfield in ExtJS 5
我正在将ExtJs
应用程序form 4 to 5.1
升级form 4 to 5.1
。 最初,我使用UX
boxselect
组件,但在ExtJS 5.1
该组件位于核心Ext目录中。 因此,按照升级指南中的说明,我删除了boxselect并替换为tagfield。 但是这样做之后,我开始出现此错误
未捕获的TypeError:无法读取null的属性'removeCls'。
如果我用combo重命名tagfield,它可以正常工作。
我正在更改xtype : ''
仅此而已,不知道在将boxselect to tagfield in extjs 5
升级boxselect to tagfield in extjs 5
我到底还缺少什么吗?
编辑-:经过更多调试后,我发现Ext.form.field.Text
中的toggleInvalidCls()
方法存在问题。请在下面找到代码,
toggleInvalidCls: function(hasError) {
var method = hasError ? 'addCls' : 'removeCls';
this.callParent();
this.triggerWrap[method](this.triggerWrapInvalidCls);//getting error here
this.inputWrap[method](this.inputWrapInvalidCls);
},
this.triggerWrap对象由于标记字段而变为空...任何原因? Brwoser控制台还显示警告XTemplate evaluation exception: wrapperStyle is not defined
错误之前XTemplate evaluation exception: wrapperStyle is not defined
。
我的组合替代有问题。只需删除现有的组合替代,现在就可以显示标记字段。
我忘记了我的应用程序中有组合覆盖。
记住 -如果您将tagifled
与现有组合覆盖一起使用,请在使用tagifled
升级extjs 5
时考虑使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.