Opened 13 years ago

Closed 13 years ago

#5283 closed enhancement (notabug)

*FIX* for reset event in ui.button with custom themes

Reported by: mixir Owned by:
Priority: blocker Milestone: 1.8
Component: ui.button Version: 1.8rc3
Keywords: button, reset, mouseleave, active state Cc:
Blocked by: Blocking:

Description

add new line after 60 line in /jquery.ui.button.js with code:

$( this ).blur();

56  .bind( "mouseleave.button", function() { 
57                                 if ( options.disabled ) { 
58                                         return; 
59                                 } 
60                                 $( this ).removeClass( hoverClass ); 
61                                 $( this ).blur(); /// Button custom themes reset fix
62                         })

Change History (3)

comment:1 Changed 13 years ago by Scott González

What is this supposed to be fixing? A fix without a bug isn't very helpful.

comment:2 in reply to:  1 Changed 13 years ago by mixir

Replying to scott.gonzalez:

What is this supposed to be fixing? A fix without a bug isn't very helpful.

After mouse click on button and leave mouse outside, button state stay like a hover (actually focused)

look at two first buttons at demo page http://jqueryui.com/demos/button/ , buttons are stay hovered after clicking on them and levae mouse out.

comment:3 Changed 13 years ago by Scott González

Resolution: invalid
Status: newclosed

See this forum thread for an explanation of why this was closed.

Note: See TracTickets for help on using tickets.