1. #1
    Sencha Premium Member
    Join Date
    Mar 2007
    Posts
    12
    Vote Rating
    0
    Nick is on a distinguished road

      0  

    Default Ext.tree.MultiSelectionModel getSelectedNodes() returns duplicate nodes

    Ext.tree.MultiSelectionModel getSelectedNodes() returns duplicate nodes


    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

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    This is fixed in SVN. Thanks.
    Jack Slocum
    Ext JS Founder
    Original author of Ext JS 1, 2 & 3.
    Twitter: @jackslocum
    jack@extjs.com

Thread Participants: 1