Results 1 to 2 of 2

Thread: 6.5.3 nightly regression - Element dataview fires deselect on refresh

    You found a bug! We've classified it as EXTJS-25779 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,144
    Vote Rating
    985
      0  

    Default 6.5.3 nightly regression - Element dataview fires deselect on refresh

    Using nightly 6.5.3 modern from 20171204.

    Code:
    Ext.onReady(function() {
        const makeView = (T, label) => {
            var dv = new T({
                renderTo: document.body,
                width: 200,
                height: 200,
                selectable: {
                    mode: 'MULTI'
                },
                itemTpl: '{name}',
                store: {
                    data: [{
                        id: 1,
                        name: 'A'
                    }, {
                        id: 2,
                        name: 'B'
                    }, {
                        id: 3,
                        name: 'C'
                    }]
                },
                listeners: {
                    deselect: function() {
                        console.log(label, 'deselect');
                    }
                }
            });
    
            var s = dv.getStore();
            dv.getSelectable().select([s.first(), s.last()]);
    
            setTimeout(() => {
                dv.refresh();
            }, 2000);
        };
    
        makeView(Ext.dataview.DataView, 'Element dataview');
        makeView(Ext.dataview.Component, 'Component dataview');
    });
    The deselect event is fired for the element dataview. There is no reason why it should be fired.
    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.

  2. #2
    Sencha - Sustaining Engineer tristan.lee's Avatar
    Join Date
    Mar 2015
    Location
    Central Ohio
    Posts
    1,579
    Vote Rating
    79
      0  

    Default

    Updated original ticket to note the regression. Thanks!
    Tristan Lee
    Sencha Inc - Sustaining Engineer


    Having an issue? Help us help you - be detailed; provide some code; demonstrate with a fiddle (fiddle.sencha.com)

    Embed your fiddle in your post: [FIDDLE]id[/FIDDLE]

Similar Threads

  1. Replies: 1
    Last Post: 6 Dec 2017, 9:22 AM
  2. [FIXED] regression checkboxmodel not clickable with latest nightly build
    By SebTardif in forum Ext 5: Bugs
    Replies: 1
    Last Post: 24 Nov 2014, 8:43 AM
  3. Replies: 4
    Last Post: 24 Nov 2014, 5:01 AM
  4. Replies: 1
    Last Post: 12 Nov 2014, 9:46 AM

Posting Permissions

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