Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Slider Input Field uses ui-state-disabled instead of ui-disabled class #4637
For a disabled form element of type "Slider" the class ui-state-disabled is set for the input field, but it should actually be the class ui-disabled as it's for all other form widgets. ui-state-disabled isn't defined in the jQM css files that's why the slider input field appears enterable.
See http://jquerymobile.com/test/docs/forms/docs-forms.html (Disabling form elements)
$( "#slider" ).addClass( "ui-disabled" );
on that page to see the UI difference when setting the correct css class.
The input field of the slider is enhanced by the textinput widget. The cause of the issue is the same as for #4637. The call to disable() is missing in the textinput widget. That function adds the "ui-disabled" class. The class "ui-state-disabled" is added by the jQuery UI widget factory that we use. So it's not just a typo that we need to fix.