I am using ext version 6.5.3. classic Neptune. I have a treepanel with cellediting plugin and have provided clicksToEdit as 1. Now if I apply filter on the treepanel and click on the cell to edit, it takes 1 click to do so. But if I click on the next cell, it takes 2 clicks to become editable. Please find the below example
Ext.create({
"xtype": "container",
renderTo: Ext.getBody(),
"items": [{
"xtype": "treepanel",
"id": "tp",
store: Ext.create('Ext.data.TreeStore', {
fields: ['Brand', 'Price'],
root: {
children: [{
Brand: 'Brand1',
Price: '8M'
}, {
Brand: 'Brand2',
Price: '8M'
}, {
Brand: 'Brand3',
Price: '10M'
}]
}
}),
"rootVisible": false,
"columns": [{
"xtype": "treecolumn",
"dataIndex": 'Brand',
"editor": true,
"text": "Brands"
}, {
"xtype": "treecolumn",
"dataIndex": "Price",
"text": "Value",
"editor": true,
}],
"plugins": [{
"ptype": "cellediting",
"clicksToEdit": 1
}]
}, {
xtype: 'button',
text: 'Add Filter',
handler: function () {
Ext.getCmp('tp').getStore().addFilter({
property: 'Price',
value: '8M'
})
}
}, {
xtype: 'button',
text: 'Clear Filter',
handler: function () {
Ext.getCmp('tp').getStore().clearFilter();
}
}]
});
- click on "Add Filter" button.
- click a cell and edit the cell (do not press enter).
- click on the next cell to edit (here it will take 2 clicks for the cell to become editable).
- click on "Clear Filter" button to remove filter and perform same steps. (here the 2nd cell will become editable just after single click)
Expected result for step 3, cell should become editable on 1st click itself. This was working on version "6.0.1" and is breaking in "6.5.3".
Is there any workaround available?