diff --git a/tests/unit/button/button.html b/tests/unit/button/button.html index 5ec7e316afb..9458e601ef7 100644 --- a/tests/unit/button/button.html +++ b/tests/unit/button/button.html @@ -61,6 +61,13 @@

+
+
+ + + +
+
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 18a95056330..7b2d73aa8f0 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -228,6 +228,26 @@ $.widget( "ui.button", { if ( this.type === "checkbox" || this.type === "radio" ) { // we don't search against the document in case the element // is disconnected from the DOM + + //if the 's parent is