Results 1 to 5 of 5

Thread: [FIXED][2.0.2] Ext.tree.MultiselectionModel unselect was never triggered

  1. #1
    Sencha Premium User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891

    Default [FIXED][2.0.2] Ext.tree.MultiselectionModel unselect was never triggered

    The MultiSelectionModel of Ext.tree has a little Bug that prevents it to handle unselection of already selected Nodes as expected. (Deselection of a node by clicking again with the CTRL Key on an already selected Node was simply ignored)

    A simple change of the function onNodeClick solves this:

    PHP Code:
    onNodeClick : function(nodee){
            if(
    this.isSelected(node) && e.ctrlKey){
                
    this.unselect(node);            
            }
            else {
                
    this.select(nodeee.ctrlKey); //that was the only line in onNodeClick before
            
    }
        } 
    Would be nice to get this into the Core.

  2. #2
    Sencha Premium User
    Join Date
    Oct 2007
    Location
    Berlin, Germany
    Posts
    891

    Default

    I changed my Original Posting and removed the code for altering the select-function as it _must_ be left as it is because the selNodes would have got an wrong counter then. Just use the altering of onNodeclick as stated above and everything works fine

  3. #3

  4. #4
    Sencha User sksoft's Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    34

    Default Ignoring hotfix

    Ext Developers, why you ignore this hotfix in 2.2.1?

  5. #5
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    Fixed in SVN.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •