-
27 Aug 2012 12:14 PM #1
[BUG] selected node lose CSS selection class after editing
[BUG] selected node lose CSS selection class after editing
REQUIRED INFORMATIONExt version tested:
- Ext 4.1.1
- Chrome
- FF 14.0.1 (firebug 1.10.2 installed)
- Selected node loses visual CSS selection class after editing
- load tree panel
- select tree node
- edit node information
- node with updated node information is still selected
- node is not visually selected, but selectionModel indicates it as selected
Code:var store = Ext.create('Ext.data.TreeStore', { root: { expanded: true, children: [ { text: "detention", leaf: true }, { text: "homework", expanded: true, children: [ { text: "book report", leaf: true }, { text: "alegrbra", id:'select', leaf: true} ] }, { text: "buy lottery tickets", leaf: true } ] } }); var tree = Ext.create('Ext.tree.Panel', { width: 400, height: 250, store: store, rootVisible: false, renderTo: Ext.getBody(), viewConfig: { markDirty : false }, dockedItems: [{ xtype: 'toolbar', dock: 'bottom', items: [{ text: 'Edit', handler: function(){ var sm = tree.getSelectionModel(); var node = sm.getLastSelected(); node.beginEdit(); node.set('text', 'test1'); node.endEdit(); } },{ text: 'Check', handler: function(){ var sm = tree.getSelectionModel(); var node = sm.getLastSelected(); Ext.Msg.alert('Check', node.get('text')); } }] }] });
HELPFUL INFORMATION
See this URL for live test case: Operating System:- Win7
-
27 Aug 2012 3:34 PM #2
Thanks for the test case, we already have this one resolved for the next release.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
29 Aug 2012 5:38 AM #3
Does this have a reported issue # that we can use to keep track?
-
29 Aug 2012 5:42 AM #4Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
29 Aug 2012 7:34 AM #5
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote