Results 1 to 3 of 3

Thread: ext-621: Primary xtype for Ext.form.field.Combobox has been changed to 'combo'

    You found a bug! We've classified it as EXTJS-23580 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1

    Default ext-621: Primary xtype for Ext.form.field.Combobox has been changed to 'combo'

    Hi,

    In ExtJs 6.2.1, It looks like the primary xtype for the Ext.form.field.Combobox has been changed from the previous 'combobox' to 'combo'.

    We are migrating from ExtJs 4.2.1 to ExtJs 6.2.1, and some of our code that was relying on some xtype comparisons started failing.

    We are currently using isXType() as an alternative, to check whether a control is a combobox or not. (it appears to support backward compatibility)

    But, we would like to know why such a breaking change was made and if there are any other controls that suffer this problem too.

    Code:
    Ext.application({    name : 'Fiddle',
        launch : function() {
            alert(Ext.create('Ext.form.field.ComboBox').xtype) // this will show "combo" instead of previous "combobox"
        }
    });
    Note: this wont replicate in sencha fiddle because it uses debug versions of ext-all.js, which still uses 'combobox' as primary xtype.


    Thank you,
    Nagarjuna

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449

    Default

    Created a fiddle that uses ext-all.js:



    I can reproduce what you are reporting and will open a bug for it. Instead of xtype you could use the isXType method and optionally make it check shallow instead of checking it's superclasses.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3

    Default

    yup, thank you..

    do you think there could be other controls that suffer this problem too?

Similar Threads

  1. Replies: 2
    Last Post: 30 Sep 2013, 7:33 PM
  2. Replies: 4
    Last Post: 19 Sep 2012, 6:24 AM
  3. form field's style changed
    By larryan in forum Community Discussion
    Replies: 1
    Last Post: 25 Jun 2012, 1:04 PM
  4. how to tell if a model field was changed by a form panel?
    By kworam in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 30 Mar 2012, 9:51 AM
  5. Alpha3 , issue : Ext.form.Field constructor has changed
    By nseb in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 8 Mar 2007, 3:51 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
  •