Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-860 in 2.0.
  1. #1
    Sencha User tomalex0's Avatar
    Join Date
    Apr 2009
    Location
    India, Kerala, Cochin
    Posts
    581
    Vote Rating
    10
    tomalex0 will become famous soon enough

      0  

    Default Text Field Listeners returning inappropriate field object

    Text Field Listeners returning inappropriate field object


    Hi,

    This is workaround which shows issue with listerners like keyup, focus ,blur associated with textfied.
    First param of each of these should be field object reference but it is not what i'm getting. But for change event it works fine.
    Code:
    {
                                xtype: 'textfield',
                                name : 'name',
                                label: 'Name',
                                useClearIcon: true,
                                autoCapitalize : false,
                                listeners  : {
                                    keyup: function(field) {
                                        console.log(field,"keyup");
                                    },
                                    focus: function(field) {
                                        console.log(field,"focus");
                                    },
                                    change: function(field) { // works fine
                                        console.log(field.getValue(),"change");
                                    },
                                    blur: function(field) {
                                        console.log(field,"blur");
                                    }
                                }
                            }
    Sencha Touch Demos

    IosToggleField Forum - Github
    Form Validation
    Forum - Github
    Iphone Settings Menu
    Forum
    Sqlite Storage & Login Manifest
    Forum
    KitchenSink MVC
    Forum - Github
    SqliteProxy-v1 Forum - Github
    SqliteProxy-v2
    Forum - Github
    Arshaw Fullcalendar Forum - Github






  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,651
    Vote Rating
    14
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report, a cleaning up event signatures and making them more consistent is an issue we are looking to fix going forward.