我正在升級我的ExtJs
應用程序form 4 to 5.1
。最初我使用組件來自UX
,但在ExtJS 5.1
這個組件進入核心Ext目錄。所以我刪除了boxselect,並使用tagfield替換,如上級指南中所述。但是,這樣做之後,我開始收到此錯誤無法讀取ExtJS中的tagfield屬性'removeCls'5
Uncaught TypeError: Cannot read property 'removeCls' of null.
如果我重新命名tagfield連擊它沒有任何錯誤的工作。
我只更改xtype : ''
,沒有別的,不知道我在升級boxselect to tagfield in extjs 5
時還缺少什麼?
編輯 - : 調試運行經過,我發現問題,從Ext.form.field.Text
toggleInvalidCls()
方法..Please找到代碼波紋管,
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物體發出空的tagfield ...任何原因嗎? Brwoser控制檯也顯示警告XTemplate evaluation exception: wrapperStyle is not defined
之前拋出removeCls的錯誤...