Buttons: Removed the logic for triggering click events on checkboxes and radio buttons. This logic was actually causing the opposite functionality from what we wanted.

Fixes #5195 - .buttonset() prevents change event from being catchable.
This commit is contained in:
Scott González 2010-02-18 02:43:23 +00:00
parent b848e37f28
commit 9cabe8403e
2 changed files with 0 additions and 15 deletions

View File

@ -5,13 +5,4 @@
module("button: events");
test("click-through", function() {
expect(2);
var set = $("#radio1").buttonset();
set.find("input:first").click(function() {
ok( true );
});
ok( set.find("label:first").click().is(".ui-button") );
});
})(jQuery);

View File

@ -73,9 +73,6 @@ $.widget( "ui.button", {
return;
}
$( this ).toggleClass( "ui-state-active" );
self.element
.attr( "checked", !self.element[0].checked )
.click();
self.buttonElement.attr( "aria-pressed", self.element[0].checked );
});
} else if ( this.type === "radio") {
@ -84,9 +81,6 @@ $.widget( "ui.button", {
return;
}
$( this ).addClass( "ui-state-active" );
self.element
.attr( "checked", true )
.click();
self.buttonElement.attr( "aria-pressed", true );
var radio = self.element[ 0 ],