ExtJS의 기존 버그이며 ExtJS Row Editing
예에서도 찾을 수 있습니다. 해결 방법은 한 가지이지만 해결 방법이 아닙니다.
행 편집을위한 버튼을 생성하는 데 사용되는 Ext.grid.RowEditorButtons
클래스의 ExtJS를 무시할 수 있습니다.
Ext.override(Ext.grid.RowEditorButtons, {
constructor: function(config) {
var me = this,
rowEditor = config.rowEditor,
cssPrefix = Ext.baseCSSPrefix,
plugin = rowEditor.editingPlugin;
config = Ext.apply({
baseCls: cssPrefix + 'grid-row-editor-buttons',
defaults: {
xtype: 'button',
ui: rowEditor.buttonUI,
scope: plugin,
flex: 1,
minWidth: Ext.panel.Panel.prototype.minButtonWidth,
height: 18,
style: 'padding: 0'
},
items: [{
cls: cssPrefix + 'row-editor-update-button',
itemId: 'update',
handler: plugin.completeEdit,
text: rowEditor.saveBtnText,
disabled: rowEditor.updateButtonDisabled,
listeners: {
element: 'el',
keydown: me.onUpdateKeyDown,
scope: me
}
}, {
cls: cssPrefix + 'row-editor-cancel-button',
itemId: 'cancel',
handler: plugin.cancelEdit,
text: rowEditor.cancelBtnText,
listeners: {
element: 'el',
keydown: me.onCancelKeyDown,
scope: me
}
}]
}, config);
me.callParent([config]);
me.addClsWithUI(me.position);
}
});
link을 참조하십시오.