| Issue 369: | getEventTargetType() does not recognize the target type if the element has additional classes | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Add some other class to dynatree-title node, for example in custom rendering. 2. node.getEventTargetType(event) will return null, when for example, clicking on the node title This is because getEventTargetType treats target.className as single class name, when it actually can contain several. I've attached a quick patch to make it support multiple classes, but it's not very efficient approach. Maybe reverting the tree.options.classNames to make a class name => type map and then iterating over target.className.split(/\s+/) to get the type would be better and cleaner.
Feb 10, 2013
(No comment was entered for this change.)
Labels:
-Milestone-Release1.2.3 Milestone-Release1.2.4
Feb 12, 2013
1.2.4 was a hotfix
Labels:
-Milestone-Release1.2.4 Milestone-Release1.2.5
Sep 8, 2013
Issue 421 has been merged into this issue. |
Labels: Milestone-Release1.2.3