Opened 9 years ago

Closed 9 years ago

#11270 closed defect (worksforme)

label.node undefined when using dojo tree

Reported by: sethuramya Owned by: anonymous
Priority: high Milestone: tbd
Component: Dijit Version: 1.2.3
Keywords: tree Cc:
Blocked By: Blocking:

Description

When I press space bar on an item in a dijit Tree, I get label.node is undefined. I tracked the problem to the dijit.Tree code below:

_onLetterKeyNav: function(message){

summary: letter key pressed; search for node starting with first char = key var node = message.node, startNode = node,

key = message.key;

do{

node = this._getNextNode(node); check for last node, jump to first node if necessary if(!node){

node = this._getRootOrFirstNode();

}

}while(node !== startNode && (node.label.charAt(0).toLowerCase() != key)); if(node && node.isTreeNode){

no need to set focus if back where we started if(node !== startNode){

this.focusNode(node);

}

}

},

Change History (1)

comment:1 Changed 9 years ago by Douglas Hays

Component: GeneralDijit
Resolution: worksforme
Status: newclosed

I ran dijit/tests/test_Tree.html on both 1.2.4 and 1.5.0rc1, using both FF 3.6 and IE6, and I was able to press Space as well as letters on each node without errors. Please include a testcase, denote the browser and exact recreate steps, and test using 1.5 rc1.

Note: See TracTickets for help on using tickets.