PDA

View Full Version : Ext.tree.MultiSelectionModel getSelectedNodes() returns duplicate nodes



Nick
13 Apr 2007, 3:20 PM
The array return by getSelectedNodes() in Ext.tree.MultiSelectionModel returns duplicate (non-unique) array of nodes. This can be reproduced by ctrl+clicking an already selected node. Each time a selected node is ctrl+clicked again it is added to selNodes array. getSelectedNodes() ought to return only non-duplicate nodes selected, correct? Currently, if user repeatedly ctrl+clicks one node 10 times, getSelectedNodes() returns an array of 10 duplicate items.

IMHO, ctrl+click on an already selected node ought to toggle that node off (deselect) as well.
See also, http://extjs.com/forum/showthread.php?t=4513

I am also having the same issue reported in this thread,
http://extjs.com/forum/showthread.php?t=2715
ctrl+click (and shift+click) opens new tab (browser window) in FireFox.
Can ExtJs call something like YAHOO.util.Event.preventDefault or .stopEvent so that
FF will not launch the href link?

Thanks

jack.slocum
13 Apr 2007, 4:10 PM
This is fixed in SVN. Thanks.