mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Button: Restrict DOM querying to labels. Fixes #5810 - Buttonset and applet error.
This commit is contained in:
parent
60dc67400e
commit
70481d9feb
2
ui/jquery.ui.button.js
vendored
2
ui/jquery.ui.button.js
vendored
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user