r2813 - removed hover and active classes on button on close (if focus isn't being retained)
Author: scottjehl
Date: Thu Jun 18 14:56:10 2009
New Revision: 2813
Modified:
branches/labs/selectmenu/ui.selectmenu.js
Log:
removed hover and active classes on button on close (if focus isn't being
retained)
Modified: branches/labs/selectmenu/ui.selectmenu.js
==============================================================================
--- branches/labs/selectmenu/ui.selectmenu.js (original)
+++ branches/labs/selectmenu/ui.selectmenu.js Thu Jun 18 14:56:10 2009
@@ -358,7 +358,7 @@
},
close: function(event, retainFocus){
if(this.newelement.is('.ui-state-active')){
- this.newelement.removeClass('ui-state-active');
+ this.newelement.removeClass('ui-state-active ui-state-hover');
this.list.removeClass(this.widgetBaseClass+'-open');
if(this.options.style == "dropdown"){
this.newelement.removeClass('ui-corner-top').addClass('ui-corner-all'); }
if(retainFocus){this.newelement.focus();}