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

Commit 5b8d806

Browse files
committed
Checkboxradio: Remove fieldset from being a form
owner so that radios in different fieldsets are properly associated. Fixes: #5366 - Enhanced radio buttons stay checked when others in group are clicked
1 parent c6563da commit 5b8d806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/widgets/forms/checkboxradio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
154154
return this.element;
155155
}
156156

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

0 commit comments

Comments
 (0)