PDA

View Full Version : [OPEN] button remains highlighted after click



mf913
11 Oct 2013, 5:10 AM
In 4.2.1... the button will remain highlighted after click the button and move mouse away from button.

In earlier version 4.1.3, after clicking the button, and moving mouse away, the button is no longer highlighter.

I think this is a bug in 4.2.1 - it appears the button will remain highlighted unless the click event triggers some action that draws focus to some other component.

https://fiddle.sencha.com/#fiddle/u8



Ext.create('Ext.Button', {
text: 'Click me',
renderTo: Ext.getBody()
});

Gary Schlosberg
11 Oct 2013, 8:40 AM
Thanks for the report! I have opened a bug in our bug tracker.

bcarollo
2 Dec 2013, 3:38 AM
Hi Gary, have you got any update on this? is there a workaround that we can use? Thanks a lot,

dmurat
15 Jan 2014, 12:03 PM
This override works for me:


Ext.define('myfixes.button.ButtonFixes', {
override: 'Ext.button.Button',

fireHandler: function() {
this.callParent(arguments);
this.blur();
}
});

HTH