From caacf8f5041ad434b8e0dd1069936eb91e4c3394 Mon Sep 17 00:00:00 2001 From: Fabrício Matté Date: Mon, 26 Nov 2012 20:14:58 -0500 Subject: Button: Let change handler handle display and aria update. Fixed #5518 - Button: Incorrect state after double click in Firefox --- ui/jquery.ui.button.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'ui/jquery.ui.button.js') diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index d6eed67dc..1108bd50c 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -147,8 +147,6 @@ $.widget( "ui.button", { if ( options.disabled || clickDragged ) { return false; } - $( this ).toggleClass( "ui-state-active" ); - that.buttonElement.attr( "aria-pressed", that.element[0].checked ); }); } else if ( this.type === "radio" ) { this.buttonElement.bind( "click" + this.eventNamespace, function() { -- cgit v1.2.3