Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1230 in a recent build.
  1. #1
    Sencha User Surykat's Avatar
    Join Date
    Jul 2011
    Location
    BIALYSTOK, Poland
    Posts
    58
    Vote Rating
    1
    Surykat is on a distinguished road

      0  

    Default [PR3] Textfield events not firing

    [PR3] Textfield events not firing


    I have couple of texfields inside my application, which I am dynamically filling when they are shown to user.

    When I change my library to PR3 this events (and rest of event for textfields) are not fired at all.

    Sample code from my controller:
    Code:
    'textfield[name=txtname]': {
          show: function(tx) { 
                    console.log('[TEXTFIELD] Show fired...'); //Nothing in log...
                    tx.setValue(instance.name);
           }
    }

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    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.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    18
    Vote Rating
    2
    anj is on a distinguished road

      0  

    Default


    This problem occurs also on other elements like a container:

    The definition of listeners in config or directly in the "Ext.define" does not work, only if I use "this.on" in the initialize method.

    The other problem is that the events are fired too early on iOS. I tried to focus a field after it is painted or show'ed. This works well at Webkit, but not on the simulator. The field is not even visible and I get the "painted" or the "show" event?

  4. #4
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    I'm looking into this now. There is definitely an issue here.

    Quote Originally Posted by anj View Post
    The definition of listeners in config or directly in the "Ext.define" does not work, only if I use "this.on" in the initialize method.
    I cannot replicate this. Is this what you mean?

    Code:
    Ext.setup({
        onReady: function() {
            Ext.Viewport.add({
                xtype: 'container',
                listeners: {
                    show: function() {
                        console.log('????');
                    }
                }
            })
        }
    });
    This works in PR2 + PR3.

    Quote Originally Posted by anj View Post
    The other problem is that the events are fired too early on iOS. I tried to focus a field after it is painted or show'ed. This works well at Webkit, but not on the simulator. The field is not even visible and I get the "painted" or the "show" event?
    I've never seen this before, even on device. Is it just PR3? It's very difficult to debug that.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  5. #5
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    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


    This listeners config is now working properly for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar