Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #3580 — Fixes radio/checkbox rendering inside dialogs when not …

…wrapped in fieldcontain. Also addresses some general brokenness for radio/checkboxes in dialogs.
  • Loading branch information...
commit c926aa1fc4dd6a3ff6d978b5ffa5a12cd188cddb 1 parent 7704826
@Wilto Wilto authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  js/jquery.mobile.forms.checkboxradio.js
View
2  js/jquery.mobile.forms.checkboxradio.js
@@ -21,7 +21,7 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, {
input = this.element,
// NOTE: Windows Phone could not find the label through a selector
// filter works though.
- label = input.closest( "form,fieldset,:jqmData(role='page')" ).find( "label" ).filter( "[for='" + input[ 0 ].id + "']" ),
+ label = $( input ).closest( "form,fieldset,:jqmData(role='page'),:jqmData(role='dialog')" ).find( "label" ).filter( "[for='" + input[ 0 ].id + "']" ),
inputtype = input.attr( "type" ),
mini = input.closest( "form,fieldset" ).jqmData('mini'),
checkedState = inputtype + "-on",
Please sign in to comment.
Something went wrong with that request. Please try again.