Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Checkboxradio: Remove fieldset from being a form
Browse files Browse the repository at this point in the history
owner so that radios in different fieldsets are properly associated. Fixes: #5366 - Enhanced radio buttons stay checked when others in group are clicked
  • Loading branch information
arschmitz committed Dec 12, 2012
1 parent c6563da commit 5b8d806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/forms/checkboxradio.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
return this.element;
}

return this.element.closest( "form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')" )
return this.element.closest( "form, :jqmData(role='page'), :jqmData(role='dialog')" )
.find( "input[name='" + this.element[0].name + "'][type='" + this.inputtype + "']" );
},

Expand Down

0 comments on commit 5b8d806

Please sign in to comment.