-
11 May 2012 10:25 AM #1
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>
-
12 May 2012 12:52 PM #2
Verified. I doesn't work in Safari either. Do you want this thread to be moved to Bugs?
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
14 May 2012 9:03 AM #3
-
8 Oct 2012 1:30 AM #4
-
16 Nov 2012 7:40 AM #5
This seems to still be happening. Is this bug looking to be fixed in the near future?
-
18 Nov 2012 11:26 AM #6
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote
