Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Mar 2010
    Location
    Ukraine
    Posts
    47
    Vote Rating
    3
    sebbio is on a distinguished road

      0  

    Default [4.1.1 GA] Checkbox wrong blur in Chrome

    [4.1.1 GA] Checkbox wrong blur in Chrome


    Code:
          Ext.onReady(function(){
              Ext.create('Ext.form.field.Checkbox', {
                renderTo: Ext.getBody(),
                clearCls: '',
                boxLabel: 'Click me',
                margin: 20,
                listeners: {
                  blur: { fn: function(){console.info('blur');}}
                }
              }).focus(true,true);
          });
    BROWSER: GOOGLE CHROME (firefox - ok)

    When I try checked field - fire event blur. Why?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This is how checkboxes work. They aren't like a textfield where the focus will stay on them when you are typing, the checkbox is actually blurred when you check/uncheck it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Mar 2010
    Location
    Ukraine
    Posts
    47
    Vote Rating
    3
    sebbio is on a distinguished road

      0  

    Default


    But in Firefox work fine.... Why just in Chrome?

  4. #4
    Sencha User
    Join Date
    Sep 2010
    Location
    Belgium
    Posts
    29
    Vote Rating
    0
    strictlyphp is on a distinguished road

      0  

    Default


    I think what he actually tried to say is that in Chrome the blur event does not get fired.

Thread Participants: 2

Tags for this Thread