Skip to content
Permalink
Browse files
Button: Restrict DOM querying to labels. Fixes #5810 - Buttonset and …
…applet error.
  • Loading branch information
scottgonzalez committed Jul 16, 2010
1 parent 60dc674 commit 70481d9febd1b904577d2d5f4345e5a0e79a59f7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -196,7 +196,7 @@ $.widget( "ui.button", {
// we don't search against the document in case the element
// is disconnected from the DOM
this.buttonElement = this.element.parents().last()
.find( "[for=" + this.element.attr("id") + "]" );
.find( "label[for=" + this.element.attr("id") + "]" );
this.element.addClass( "ui-helper-hidden-accessible" );

var checked = this.element.is( ":checked" );

0 comments on commit 70481d9

Please sign in to comment.