We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60dc674 commit 70481d9Copy full SHA for 70481d9
ui/jquery.ui.button.js
@@ -196,7 +196,7 @@ $.widget( "ui.button", {
196
// we don't search against the document in case the element
197
// is disconnected from the DOM
198
this.buttonElement = this.element.parents().last()
199
- .find( "[for=" + this.element.attr("id") + "]" );
+ .find( "label[for=" + this.element.attr("id") + "]" );
200
this.element.addClass( "ui-helper-hidden-accessible" );
201
202
var checked = this.element.is( ":checked" );
0 commit comments