-
16 Jul 2012 12:27 PM #1
[4.1.1 GA] Checkbox wrong blur in Chrome
[4.1.1 GA] Checkbox wrong blur in Chrome
BROWSER: GOOGLE CHROME (firefox - ok)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); });
When I try checked field - fire event blur. Why?
-
17 Jul 2012 4:50 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
17 Jul 2012 5:44 AM #3
But in Firefox work fine.... Why just in Chrome?
-
8 Oct 2012 1:39 AM #4
I think what he actually tried to say is that in Chrome the blur event does not get fired.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote