Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Button: Restrict DOM querying to labels. Fixes #5810 - Buttonset and …

…applet error.
  • Loading branch information...
commit 70481d9febd1b904577d2d5f4345e5a0e79a59f7 1 parent 60dc674
@scottgonzalez scottgonzalez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.button.js
View
2  ui/jquery.ui.button.js
@@ -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" );
Please sign in to comment.
Something went wrong with that request. Please try again.