Results 1 to 3 of 3

Thread: [Modern] Removing SegmentedButton's items causes an error if there is a pressed item

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    124
    Answers
    3
    Vote Rating
    12
      0  

    Default [Modern] Removing SegmentedButton's items causes an error if there is a pressed item

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

    Steps:
    1. Click button "Remove SegmentedButton's items"
    2. There is an error in the console

    111.png


    Workaround:
    Code:
    Ext.define(null, {
        override: 'Ext.SegmentedButton',
    
        doRemove: function(item, index, destroy) {
            var me = this;
    
    
            if (!me.destroying && !item.destroyed && item.getPressed()) {
                item._pressed = false;
            }
            me.callParent(arguments);
        }
    });

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    938
    Answers
    5
    Vote Rating
    -498
      0  

    Default

    Thank you so much for your post. I apologize for the delay. I have shared this with the support staff to look into at their earliest convenience. Your patience is greatly appreciated! We do suggest using the support portal when you need assistance with a capability of a Sencha product, you have identified a situation where a products behavior is inconsistent with the product documentation and might indicate a software bug, or when the communication between you and Sencha needs to be private.

    Thanks again,

    Michele



  3. #3
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    421
    Answers
    5
    Vote Rating
    -309
      0  

    Default

    Hello,

    This issue has been registered in our bug tracker for resolution, the reference number EXTJS-28193 will be linked here for you to check the status.

    Regards,
    Kumar
    Sencha Support.

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
  •