jaosobne Posted October 31, 2018 Posted October 31, 2018 Hi , I have simple form with checkbox and edit. While I moving on form by mouse clicking it works correctly , but with tab key unicheckbox doesn't blur after losing focus and looks like it has focus I can do this by add listener to that checkbox with unievent like that function afterCreate(sender) { sender.addListener('blur', function(){ this.displayEl.removeCls('x-form-checkbox-focus') }); } My question is if it can be done once by some Ext.form.field.Checkbox.prototype for whole application or it is a bug ? I don't want to add this for each checkbox that i have in application. Thanks Quote
Sherzod Posted October 31, 2018 Posted October 31, 2018 Hi, You can try to add this in MainForm -> Script: Ext.override(Ext.form.field.Checkbox, { onBlur: function() { this.displayEl.removeCls('x-form-checkbox-focus'); this.callParent(arguments); } }) Quote
jaosobne Posted October 31, 2018 Author Posted October 31, 2018 Thank you Sherzod !!! that is what i need . I tried it with onBlur override but at wrong place . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.