Results 1 to 5 of 5

Thread: DataView deselect bug in mode: 'multi'

    You found a bug! We've classified it as EXTJS-26953 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Jan 2017
    Posts
    1

    Default DataView deselect bug in mode: 'multi'

    Dear Support,

    There is a bug in latest version ExtJS Moder 6.5.3.7
    When you set selectable to
    selectable: {
    mode: 'multi',
    deselectable: true
    }
    the 'select' event is fired, but when you deselect item the 'deselect' event does not fire at all.

    Fiddle https://fiddle.sencha.com/#view/editor&fiddle/2fm2

    With Kind Regards
    Sebastian

  2. #2
    Sencha - Support Team
    Join Date
    Sep 2017
    Posts
    67

    Default

    Hello Sebastian,

    Hope you are doing well and Thanks for keeping us posted. Much appreciated.

    We will check this over and let you know at earliest.

    Regards,
    Joe.

  3. #3
    Sencha - Support Team
    Join Date
    Sep 2017
    Posts
    67

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  4. #4
    Sencha Premium User
    Join Date
    Oct 2016
    Posts
    26

    Default

    Quote Originally Posted by Jaraj View Post
    Thanks for the report! I have opened a bug in our bug tracker.
    any ETA on this ?

  5. #5
    Sencha Premium User
    Join Date
    Nov 2015
    Posts
    19

    Default

    Still in 6.6.0
    Any information or workaround?

    And why there's no more the event "selectionchange" (
    inherits from Ext.mixin.Selectable)?
    Now I have to listen to two events and one is not working.


    EDIT:
    The bug is found in Ext.dataview.selection.Model.selectWithEventMulti()
    Code:
    me[isSelected ? 'deselect' : 'select'](record, true);
    This calls the functions select() and deselect() with the same parameters (record, true)
    But
    deselect() hasn't the parameter keepExisting
    Code:
    select: function(records, keepExisting, suppressEvent)
    
    deselect: function(records, suppressEvent)

    So the workaround is:
    Code:
    if (isSelected) {
        me.deselect(record);
    } else {
        me.select(record, true);
    }



Similar Threads

  1. Replies: 8
    Last Post: 21 Jan 2015, 12:05 PM
  2. Replies: 3
    Last Post: 2 Aug 2013, 8:42 AM
  3. Replies: 2
    Last Post: 19 Mar 2013, 2:19 PM
  4. Replies: 1
    Last Post: 17 Dec 2012, 2:04 PM
  5. Replies: 0
    Last Post: 12 Aug 2011, 1:09 AM

Tags for this Thread

Posting Permissions

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