| Issue 318: | Activate not working after addChild from toDict clipboard | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Copy dynatree objects via toDict, non recursive or recursive doesn't matter. 2. using addChild add them to a node. 3. programmatically activate the top most newly added node using either tree.activateKey(key) or node.activate() Attached. What is the expected output? What do you see instead? Expect: The Node is Activated (and Focused if using activateKey) and the onActivate event is triggered. Occurs: The Node is Activated (and Focused if using activateKey) but the onActivate event is never triggered. What version of the dynatree and jQuery are you using? 1.21 & 1.7.1 (also tried 1.2 and 1.7.2) On what operating system and browser? Vista 64bit, Chrome 19, IE9 What DOCTYPE declaration are you using? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Also tried: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Please provide any additional information below. It appears that something is happening within addChild when using the container that is setting the activeNode to the top most newly created node, but it is not triggering the onActivate event. Then when specifically making the activate call dynatree believes that the node is already active so does not trigger the onActivate event (it is triggering the if on line 743 in the dyntree code : if( this.tree.activeNode === this )) The add button in my attached file works fine activating the new node but that creates from an object. The copy works fine if you comment in line 38 (dtActive.activate();) which resets the active node to the original active node, however if you move line 38 above the addChild command it reverts to not working. I can't suggest a solution sorry as that's the limit of my javascript skills. Thanks.
Jun 6, 2012
Deferred, so v1.2.1 can be released shortly.
Labels:
-Milestone-Release1.2.1 Milestone-Release1.2.2
Oct 6, 2012
(No comment was entered for this change.)
Labels:
-Milestone-Release1.2.2 Milestone-Release1.2.x
May 1, 2014
As of 2014 Dynatree is feature frozen. Please have a look at Fancytree (sequel of DynaTree 1.x): chances are good that the problem was resolved / the requested featuer is already implemented. Please open a new issue there otherwise: https://github.com/mar10/fancytree
Status:
WontFix
May 3, 2014
(No comment was entered for this change.)
Labels:
-Milestone-Release1.2.x Milestone-Release2.0
|
Labels: Milestone-Release1.2.1