Opened 10 years ago

Closed 7 years ago

#8286 closed enhancement (wontfix)

Tree onClick - conditionally call focusNode()

Reported by: Les Owned by:
Priority: high Milestone: future
Component: Dijit Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:

Description

Here's a dijit.Tree's code fragment:

this.onClick(nodeWidget.item, nodeWidget);
this.focusNode(nodeWidget);

Would it be possible to modify this code to conditionally focus the clicked tree node?

if(this.onClick(nodeWidget.item, nodeWidget)) {
   this.focusNode(nodeWidget);
}

I also put this in the support forum: http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-development-discussion/tree-onclick-conditionally-focusnode

Change History (3)

comment:1 Changed 10 years ago by bill

Milestone: tbdfuture

comment:2 Changed 8 years ago by bill

It's possible, but why do you want that? If the user clicks a button or input or textarea, it always gets focus.

comment:3 Changed 7 years ago by bill

Resolution: wontfix
Status: newclosed

I don't see a reason for this.

Note: See TracTickets for help on using tickets.