当我双击小部件时,抛出
:未捕获的类型错误:无法读取未定义的属性"可聚焦">
我有带有小部件列的网格
text:'blabala'
flex: 1.8,
xtype: 'widgetcolumn',
dataIndex: 'attachment',
stopSelection: false,
widget: {
xtype: 'panel',
layout: 'hbox',
padding: 5,
border: 0,
bodyStyle: 'background:transparent',
flex: 1,
header: false,
items: [{
xtype: 'panel',
flex: 1,
bodyStyle: 'background:#d7d7d7;border-radius:16px',
layout: 'hbox',
items: [
{
xtype: 'button',
cls: 'attach-btn-divers',
padding: '10 0 10 5',
textAlign: 'left',
flex: 1,
}, {
xtype: 'button',
cls: 'attach-btn-divers attach-btn-divers-cancel',
padding: '10 5 10 0',
iconCls: 'x-fa fa-close',
handler: 'onDetachDiver',
width: 20,
},
]
}, {
xtype: 'combolabel',
forceSelection: true,
store: {
type: 'divingAttachmentStore'
},
displayField: 'value',
valueField: 'value',
autoSelect: true,
queryCaching: false,
queryMode: 'remote',
listConfig: {
loadMask: false
},
flex: 1,
listeners: {
specialkey: 'onEditAttachment',
focusLeave: 'onFocusLeaveAttachment',
beforequery: 'onBeforeQueryAttachment'
}
},
]
},
onWidgetAttach: 'onWidgetAttachAttachment',
编辑时,将显示组合
在普通视图中,将显示带有按钮的面板
如果单元格为空,则组合以空文本显示。当您单击组合时,列表会下降,但出现错误
更新 29.03.2017
如果删除了编辑插件,则没有错误。转载:https://fiddle.sencha.com/#view/editor&fiddle/1t1v
已解决。我为小部件列定义了一个空编辑器
editor:{},
问题消失了。