PDA

View Full Version : Textarea in Split-button



nandkumart
6 Mar 2012, 10:39 PM
Space and left arrow key does not work, if I add Textarea on Splitbutton. Have a look on following code. I think this is an ExtJS issue

Ext.create('Ext.form.FormPanel', {
title : 'Sample TextArea',
width : 400,
bodyPadding: 10,
renderTo : Ext.getBody(),
items: [{
xtype:'splitbutton',
text: 'Add text',
id:'id-text1',
menu: new Ext.menu.Menu({
id:'menu-btn1',
items: [
// these items will render as dropdown menu items when the arrow is click
{
xtype:'panel',
id:'panel1',
layout:'fit',
bodyCssClass: 'popup-body1',
width:310,
header:false,
items:[{
xtype:'textarea',
id:'text-area1',
width:250,
keyNav: 1,
height:90
}]
}]
})

}]
});