Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    37
    Vote Rating
    0
    wapiko is on a distinguished road

      0  

    Default Checkbox Focus/Blur Issue on Chrome

    Checkbox Focus/Blur Issue on Chrome


    Hello,

    I have an issue with using the checkbox focus/blur events on Chrome.

    On Chrome, when the user clicks on the checkbox, it doesn't trigger the focus and blur listener events, but it works as expected on Firefox and IE9. It seems the focus/blur events only get triggered if the user uses "Tab" button. Is it a bug or this is by design?

    This is the code I used to test:
    Code:
    <html>
      <head>
      <link href="/resources/css/ext-all.css" media="screen" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="/javascript/ext4/ext-all-debug.js"></script>
      <script type="text/javascript" src="/javascript/jquery/jquery-debug.js"></script>
      <script type="text/javascript">
        Ext.onReady(function() {
          var checkbox = Ext.create("Ext.form.field.Checkbox",
            {
              id: "checkbox_ID",
              renderTo: "checkbox_DIV",
              boxLabel: "Checkbox Test",
              listeners:
                {
                  focus: function(checkbox)
                    {
                      alert("focus");
                    },
                  blur: function(checkbox)
                    {
                      alert("blur");
                    },
                  afterrender: function(checkbox)
                    {
                      checkbox.inputEl.on("click", function()
                        {
                          $("#spanText").html("Checkbox is clicked!");
                        });
                    }
                }
            });
          });
      </script>
      </head>
      <body>
      <div id="checkbox_DIV"></div>
      <span id="spanText"></span>
      </body>
    </html>

  2. #2
    Sencha - Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    26,166
    Vote Rating
    82
    jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold jsakalos is a splendid one to behold

      0  

    Default


    Verified. I doesn't work in Safari either. Do you want this thread to be moved to Bugs?

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2009
    Posts
    37
    Vote Rating
    0
    wapiko is on a distinguished road

      0  

    Default


    Sure, thanks for checking!

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

      0  

    Default


    Any news on this?

  5. #5
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    DragonBeer is on a distinguished road

      0  

    Default


    This seems to still be happening. Is this bug looking to be fixed in the near future?

  6. #6
    Sencha - Support Team mike.estes's Avatar
    Join Date
    Mar 2011
    Location
    Redwood Shores, CA
    Posts
    213
    Vote Rating
    2
    mike.estes is on a distinguished road

      0  

    Default


    This appears to be a webkit bug, see https://bugs.webkit.org/show_bug.cgi?id=22261