diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-07-16 11:48:40 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-07-16 11:48:40 -0400 |
commit | 70481d9febd1b904577d2d5f4345e5a0e79a59f7 (patch) | |
tree | 3236bea04123038878a63f2a11ff76645674cbbe /ui/jquery.ui.button.js | |
parent | 60dc67400e5e55539d56cc066986f509c46a3c07 (diff) | |
download | jquery-ui-70481d9febd1b904577d2d5f4345e5a0e79a59f7.tar.gz jquery-ui-70481d9febd1b904577d2d5f4345e5a0e79a59f7.zip |
Button: Restrict DOM querying to labels. Fixes #5810 - Buttonset and applet error.
Diffstat (limited to 'ui/jquery.ui.button.js')
-rw-r--r-- | ui/jquery.ui.button.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index db8c8b27b..b2fab4d24 100644 --- a/ui/jquery.ui.button.js +++ b/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" ); |