After updating JQM from rc1 to rc3 textbox to the left of the slider has disappeared #3081

alexavrutin opened this Issue Nov 17, 2011 · 8 comments


None yet

4 participants


Now I have another, native slider nearby. It only happens if slider is on a page loaded as a dialog. The code did not change, it's shown below (code is ASP.NET MVC3 Razor).

                <div data-role="fieldcontain">
                    @Html.LabelFor(m => m.AgeFrom)
                    <input type="range" name="AgeFrom" id="searchSettings-AgeFrom" min="16" max="70"
    onchange="SearchSettingsChangeAgeFrom();" value="@Model.AgeFrom" />
                <div data-role="fieldcontain">
                    @Html.LabelFor(m => m.AgeTo)
                    <input type="range" name="AgeTo" id="searchSettings-AgeTo" value = "@Model.AgeTo" min="16" max="70" onchange="SearchSettingsChangeAgeTo();" />

Can you test using the 1.0 code?

Also, can you paste the generated markup for those of us who refuse to touch ASP?

One more thing, what device/browser?


Can you paste it at or so we can see a live example


I've run into this issue myself using jQM 1.0. Slider textboxes are fine on normal pages, but are missing on dialogs. The degradeInputs plugin seems to be the culprit -- it bails early for pages that do not have data-role="page".

The following change fixed the issue for me:

@@ -3649,7 +3649,7 @@ $ = {
 //auto self-init widgets
 $( document ).bind( "pagecreate create", function( e ){

-   var page = $(':jqmData(role="page")').data("page"), options;
+   var page = $(':jqmData(role="page"),:jqmData(role="dialog")').data("page"), options;

    if( !page ) {

Yup, it works!


Can you submit that as a pull request please?

@eromba eromba added a commit to eromba/jquery-mobile that referenced this issue Nov 21, 2011
@eromba eromba Issue #3081: Range inputs on dialogs don't degrade
The degradeInputs plugin bails early for pages that do not have
data-role="page". This behavior prevented range inputs (for slider widgets)
from degrading properly when used in dialogs.

Updated degradeInputs unit tests to check dialogs, too.

Pull request merged: #3131

@johnbender johnbender closed this Dec 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment